* showlibrary lists only parts, not objects
* the -e and -E command line options distinguish parts and objects
- part N [-]O [F A] [FR AR ...]
+ part N [-]O [F [A]] [FR AR ...]
obj[flip] O A F [P]
Places an instance of object or part O. The loc defined inside O as
F (`formal parameter', F must be just <identifier>) is placed at
specifies that the loc FR inside O is exported into the global
namespace as a new loc AR. Either FR or AR may start with `-'.
Also, each loc L inside O is exported into the global namespace as a
- new loc N_L (unless N_L already exists).
+ new loc N_L (unless N_L already exists). If A is not specified then
+ N_F is used.
For `obj[flip]' if prefix P (syntax is that of an identifier) is
specified, each other loc L inside O is exported into the global
$obj_id= can(\&cva_idstr);
if (defined $part_name) {
$formal_id= can(\&cva_idstr);
- $actual= can(\&cva_idex);
+ $actual= cano(\&cva_idex, undef);
+ if (!defined $actual) {
+ $actual= cva_idex("${part_name}_${formal_id}");
+ }
} else {
$actual= can(\&cva_idex);
$formal_id= can(\&cva_idstr);
@al= split /\s+/, $_;
next unless @al;
print DEBUG "=== @al\n";
+ last if $al[0] eq 'eof';
push @{ $ctx->{CmdLog} }, [ @al ] if exists $ctx->{CmdLog};
cmd__one();
}
include(`parts.i4')
abs midx_m 830 500 90
-obj cross_peco_l midx_m m midx_
+part midx cross_peco_l m
abs dem_tljp_m 200 200 0
obj pt_peco_mr dem_tljp_m c dem_tljp_