API to apply terminal data

API to apply terminal data

james.mcmillanNYR6A
Collaborator Collaborator
289 Views
3 Replies
Message 1 of 4

API to apply terminal data

james.mcmillanNYR6A
Collaborator
Collaborator

Writing a lisp to insert terminals. 

 

Is there an API to apply the terminal xdata (levels, connections etc)? I figure this would be the equivalent of wd_get_pinlist / wd_pinlist_attach. Anything to save me writing the xdata?

 

sorry if this is very obvious I've been looking for ages

0 Likes
290 Views
3 Replies
Replies (3)
Message 2 of 4

Sea-Haven
Mentor
Mentor

Need a lot more info not all of us do electrical but are capable of writing a solution. Need a dwg at least.

0 Likes
Message 3 of 4

james.mcmillanNYR6A
Collaborator
Collaborator

Thanks for the response, I'm half capable of writing a solution myself but feel like I shouldn't have to...

 

When assigning catalogue information to a terminal through either insert component dialogue or TSE, electrical will automatically update the xdata from the database Levels (LTOTAL)/ Leveldescription (L01LABEL/L02LABEL) / Wires per connection (L01WIREPERC/L02WIREPERC) fields

 

jamesmcmillanNYR6A_0-1668501579046.png

 

I'm inserting the terminal using wd_insym2 and updating the the tagstrip and catalogue info using wd_modattrval

 

If I were inserting a component I could use the wd_pinlist_attach api to attach the pinlist xdata, and thought there should be something similar for terminals.

 

I thought this might be the right place to ask but will also try in the electrical forum. I could attach a drawing, but it would only have a standard schematic terminal on it. If I assigned the catalogue info using the dialogue then the xdata would already be present.

0 Likes
Message 4 of 4

james.mcmillanNYR6A
Collaborator
Collaborator
0 Likes