- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
This is probably a bit exotic question but is it possible to delete a body inside a part environment with iLogic code?
I generate this body from another assembly, then I delete it after I finish extracting parameters from Region properties. That means that every time I repeat the process the name of the body changes (Base1 then Base 2, then Base 3...etc).
If somebody knows how to delete this body please let me know.
Tom
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
you can use this for start, it assumes that last feature will be EOP so it will delete one before:
of course you can extend code and check if that feature what you wanted comparing name of feature and assembly name it should be traceable, but if the processs is always the same so you immport assembly to part it should work.
Dim oPartDoc As PartDocument = ThisApplication.ActiveDocument
Dim oTopBrowserNode As BrowserNode= oPartDoc.BrowserPanes.ActivePane.TopNode
Dim onode As BrowserNode = oTopBrowserNode.BrowserNodes.Item(oTopBrowserNode.BrowserNodes.Count - 1)
onode.NativeObject.Delete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Marcin,
This works well for me indeed.
I do have a question. What EOP means?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi, this mean end of part:) maybe this will hel to explain:
https://www.youtube.com/watch?v=JlzUTzM47ns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Marcin,
Ahaa, yes, I understand.
Thank you very much for the help ![]()
Tom