12-15-2021
08:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-15-2021
08:17 AM
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
(Not an Autodesk Employee)