Quantcast
Channel: NX Journaling - Journaling / NXOpen API
Viewing all articles
Browse latest Browse all 787

LoadThisPartFully error on Workpart

$
0
0

I have a journal that creates mirrored wave linked bodies. In order to do it I need to have a part fully loaded.
But I get error when I select the bodies inside the workpart. It's because of the code for loading parts fully as below:

Dim part1 As Part = myBody.OwningComponent.Prototype.OwningPart 
If part1.IsFullyLoaded=FalseThen part1.LoadThisPartFully()

I know it crashes on .OwningComponent.Prototype.OwningPart

How can I check if the body belongs to the workpart (which is normally fully loaded) and I could skip the code to load it fully?


Viewing all articles
Browse latest Browse all 787

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>