
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I've been doing some searching on these forums for an API to insert an ACAD file into a sketch.
Is there an API call to do this? I found that I can use the command manager with PostPrivateEvent :
oCmdMgr.PostPrivateEvent(PrivateEventTypeEnum.kFileNameEvent, sFileName)
oCmdMgr.ControlDefinitions("SketchInsertAutoCADFileCmd").Execute
It works great for my purpose BUT it doesn't auto constrain the endpoints, which is essential as I need to extrude /sweep after it has inserted.
There is an option to constrain end points when you manually do the import, but the command manager mustn't have anyaccess to options ?
So two questions I guess
1. Is there an API to insert an ACAD file into a sketch ?
2. If there isn't, is there another way to constrain the end points to make a loop after the insert?
Thanks,
Tom
ps. I'm using Inventor 2011
Solved! Go to Solution.