Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: mcarlton71

Just like the secondary manual process you mentioned, where you place the symbol, then set its Layer and Leader Style afterwards.  You can do the same process in your code.  At the end of the code you posted, where you have just created/placed the symbol and have set the value of your oSymbol variable, include a couple of lines like this:

oSymbol.Layer = oMyLayerObject
oSymbol.LeaderStyle = oMyLeaderStyleObject

...but of course, you must have first created those two variables (or other similar variables) used as Values here, and set their values.  How you find/get that Layer and LeaderStyle are another matter.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)