LIP select element

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, jacs, Daniel

User avatar
Rubenpmo
Private
Private
Posts: 4
Joined: Tue Jan 21, 2014 8:15 pm

LIP select element

Unread post by Rubenpmo »

Hi all!

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)
When the required is a LABEL i'm using the following code:

Code: Select all

"stock1"
GetActiveDocumentIdentifier
GetElementLabelFromName
But it that case I require a List of LABELS...

Any help?

Best Regards
Ruben Oliveira
Post Reply