Good morning Roger,
Sorry, I should have posted my solution. Since then I have changed employers and never went back to clean things up.
I my application I am tracking each wire end so I already know where they are. For me the solution turned out to be pretty easy.
- identify source location end and direction (all my source arrows go down or to the right)
- insert the appropriate symbol (HA1S4 for down, HA1S1 for right) and give it a selection set name
- set the appropriate attributes (SIGCODE and DESC1)
The routine calls look like the following
sArrow = "HA1S4" ' pointing down
If (iOrientation = 1) Then sArrow = "HA1S1" ' pointing right
If (AutoCADe_Symbol_Insert("S" & sSigCode, sArrow, rX, rY) < 0) Then Exit Function
AutoCADe_Attribute_Set "S" & sSigCode, "SIGCODE", sSigCode
AutoCADe_Attribute_Set "S" & sSigCode, "DESC1", sDesc
Where the AutoCADe_Symbol_Insert primarily does
appAutoCADe.ActiveDocument.SendCommand ("(setq " & sName & " (c:wd_insym2 """ & sComponent & """ '(" & Format(rX) & " " & Format(rY) & ") nil nil))" & vbCr)
And the AutoCADe_Attribute_Set looks like
appAutoCADe.ActiveDocument.SendCommand ("(c:wd_modattrval " & sSelectionSet & " """ & sAttribute & """ """ & sValue & """ 1)" & vbCr)
(plus all the normal error checking and other handling)
Since you have yours figured out already, maybe this will help someone else at some point. The API help is a good reference, as long as you are able to think like the creators, and fill in the holes that are left in the documentation.
Vince