Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a point associative to a view 3

Status
Not open for further replies.

MarckyMON

Computer
Nov 30, 2010
93
Hello all,

I was wondering if there was any possibility to create a point associative to a view, e.g. when I move the view, the point is moved along with it.

The purpose of this is to create a label which is "bound", e.g. associative to this point, as there are no selectable objects to associate the label to.

Thanks!

Marc
NX Software Developer
 
Replies continue below

Recommended for you

Which version are you on?
From nx7.5 on you can create sketches in the views.
Or you can use expand (RMB on the view - expand), then place the point on a curve or something else, close expand view.
Now the point is associative.

Best regards,

Michaël.

NX7.5.4.4 + TC Unified 8.3

 
Hi Michaël,

Thank you for your quick reply.

I am using NX 7.5.4.4.

I am also aware of your solution, but is there another possibility? I need to create the point programmatically.

Thank you!



Marc
NX Software Developer
 
When you say "label" are we talking about an actual 'note' with a 'leader' which appears to be 'pointing' to some point in space, or are we simply talking about a Note which will move when the View moves?

If it's just asking for the ability to create a Note which will move when a View is moved, try this:

When the Annotation dialog is opened, in the 'Origin' section of the dialog expand the area labeled 'Annotation View' and select the 'Select View' option and then on the screen select the View of interest and then place your Note like you would normally. Now when the View moves so will the Note.

However, if you're talking about a Note with an actual 'leader' pointing to some arbitrary 'point' in the view, then the previous advice given by Michaël to create a sketch in the view of interest consisting of only a single point and then creating your note with the leader attached to that point is about the only approach that I'm aware of.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
Hello John,

I am actually talking about a note with a leader, but thank you very much for your input.

I will have to say that I went with Michaël's solution. However, every time a point is created, the view is expanded and unexpanded, which results to a flickering effect. Unfortunately I cannot expand the view, create all points, then unexand the view due to a tight-knit process.

My next question would be, is there any possibility to prevent this flickering effect, e.g. temporary disable any graphic updates before performing the aforementioned process? I am coding in C.

Thanks again!

Marc
NX Software Developer
 
While I've never programmed using NX Open using 'C', I have done a lot using GRIP and we had a command there that would temporarily suspend the updating of the graphics which we would use to hide a lot of extraneous stuff like creating points and curves which were only needed temporarily so you would use the 'DRAW/OFF' command, do all your construction and then after you cleaned-up your stuff you'd use the 'DRAW/ON' command to update the display, but of course you would never see what actually had happened, only the final result. I would expect that NX Open using 'C' would have something similar and if so, I would give that a try. Do all you point creation while suppressing the display update and then use whatever the command is to perform a single display update at the end.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
There really is no need to place a point, or sketch, on a view to relate the label to. If you do it according to the below method it will move as the model moves.
Place the label on the drawing - then associate it to a point on the drawing view, based off the model:
edit > annotation > origin > drag (top left icon), associative toggled "on" > pick a point on the model in the view using the point pull down (right side) - it should be a point that you want the label to move with when the view changes (arc center, end point . . .)

I am on NX6
 
Yes, but if you wish the end of the arrowhead on the leader to simply point TOWARD something, you do have to have some sort of object to attach it to with a point being the most logical (if you hide it afterwards of course).

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
The ugopen C function to suspend display update is

int UF_DISP_set_display
(

int display_code

)

int display_code Input display code:
UF_DISP_SUPPRESS_DISPLAY- set display off
UF_DISP_UNSUPPRESS_DISPLAY- set display on

The wrapper method is

Public Sub SetDisplay (display_code As Integer)

Frank Swinkels
 
Hi Frank,

Thank you very much! It works perfectly now.

Marc
NX Software Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor