elyann
Computer
- Sep 11, 2012
- 5
Ver: NX 7.5.5.4, openC++ API.
Hi,
Using the block UI Styler, does anyone know, what is the best way to keep a reference on body/ies selected outside of the work part from other assembly or part components.
Indeed, I tried the following:
- Setup a dialogue implementing a Body Collector block to collect the required body.
- In the “apply_cb()” callback function of the dialogue, creates an UDO (so at work part scope) and linked it to the selected body with type3.
- Later on in the work part scope, retrieve the UDO; asks its Links of type 3 => LinkDefinition vector is empty…
Note that:
- In the “apply_cb()” callback function, asking the “occurrenceable” status of the body return "False"
- If bodies are selected in the work part scope, it works fine.
- If these are curve objects and not body objects that are selected it works fine.
Thanks a lot for your help,
Elyann
Hi,
Using the block UI Styler, does anyone know, what is the best way to keep a reference on body/ies selected outside of the work part from other assembly or part components.
Indeed, I tried the following:
- Setup a dialogue implementing a Body Collector block to collect the required body.
- In the “apply_cb()” callback function of the dialogue, creates an UDO (so at work part scope) and linked it to the selected body with type3.
- Later on in the work part scope, retrieve the UDO; asks its Links of type 3 => LinkDefinition vector is empty…
Note that:
- In the “apply_cb()” callback function, asking the “occurrenceable” status of the body return "False"
- If bodies are selected in the work part scope, it works fine.
- If these are curve objects and not body objects that are selected it works fine.
Thanks a lot for your help,
Elyann