NX Journal to get a feature's associated body
NX Journal to get a feature's associated body
(OP)
I'm trying to write a journal that let's me select a feature and grab the body associated with that feature so I can do a DisplayModification to it. I tried to record a journal to see how NX does it when you press CTRL + J with a feature selected, but uses sticky references and I can't figure out. Anyone have ideas?





RE: NX Journal to get a feature's associated body
As an alternative, why not just prompt the user to select the body? Why does it have to be a feature that is selected?
www.nxjournaling.com
RE: NX Journal to get a feature's associated body
The way the journal is going to work is that if there is no selection at runtime, it'll prompt for a selection and filter it to bodies or components. If there is already a selection, and the selection is a feature (extrude, hole, etc.) it'll get the associated solid and apply the modification on it.
RE: NX Journal to get a feature's associated body
CODE --> VB
But I get an error when running with the third line in that block. It says the index is outside the bounds of the array, which makes me think the array returned from .GetEntities is empty. I've also tried selectedEntities.First and it just says there is no First in the array.
RE: NX Journal to get a feature's associated body
http://solutions.industrysoftware.automation.sieme...
If there is no sample, perhaps a call to GTAC to see if .GetEntities is working as designed, and maybe they can whip up a sample and/or provide a workaround.
www.nxjournaling.com
RE: NX Journal to get a feature's associated body
Frank Swinkels
RE: NX Journal to get a feature's associated body