What I'm trying to achieve is instead of selecting a shape by picking it, I want to select it by its name.
This is the current code:
Code: Select all
LABEL labblk
INT isfree
STATIC INT follow
OnInit
1 follow!
EndInit
DDOCWgetcrtid DDOCWisfreedesign isfree!
isfree? Not If
"D#Follow={follow:D#EXISTING OPERATIONS,D#SUBSEQUENT OPERATIONS;rot}"
Else ""
Then
"ZmiUtilRoughBeam#Elements to enclose" +S
"E(ng(G3_SH)s(distinct,list))" Ask Drop (labels)
DDOCWgetcrtfr
1 follow? -
DSHBLOCKROUGHBEAMWcreate
1 = If
labblk!
labblk? 1 DSHOPROOTWcreate Drops
Then
I always want to select the shape named "electrode" instead of clicking it as it is in the code:
Code: Select all
"ZmiUtilRoughBeam#Elements to enclose" +S
"E(ng(G3_SH)s(distinct,list))" Ask Drop (labels)
Code: Select all
"stock1"
GetActiveDocumentIdentifier
GetElementLabelFromName
Any help?
Best Regards
Ruben Oliveira