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!

ôSpecificö point constructor

Status
Not open for further replies.

Polynom3000

Mechanical
Apr 30, 2014
21
Hello community,

I am wondering if it is possible to simply [and only] start any construction feature in NX with a simple “launch” command. This means that only the start window of the construction feature is shown. Especially, I am interested in the creation of a point therefore the example provided above will deal with the point constructor.

The code should look something like that.

Code:
<Launch> Insert -> Datum/Point -> Point…	‘desired feature
Default_config1 = …
Default_config2 = …
</Launch>

As you can see the aim is to simply start a desired feature. Finally the user will click on a button inside a windows form (VB application which is executed in NX) and the standard point constructor window will appear. The only difference in comparison to manually start the point constructor is the fact that a few options are preconfigured. It is very important to somehow implement an additional line of code in order to do further stuff with exactly this point.

In the past the following strategy worked pretty well (also with a lot of other NX features).


Code:
Dim Desired_Point As String

…
Dim nXObject1 As NXObject = CType(nXObject1, NXObject)
nXObject1 = pointFeatureBuilder1.Commit()
Desired_Point = nXObject1.JournalIdentifier

It is possible to access the point via the “Desired_Point” variable for further manipulations. You cannot just click the “Record Journal” button then click on Insert -> Datum/Point -> Point… then set the desired configurations and stop the Journal Recording in order to build a “specific point constructor launcher”.


Needs for the specific point constructor window:

Language: VB
Feature: Insert -> Datum/Point -> Point…

Default configuration:
- Type: Inferred Point
- Settings: Associative [Box is checked]

Filters:
- Type filter: { } [no entry is chosen by default]
- Selection Scope: Entire Assembly


Anyway is this possible in general?

Best regards,
Polynom3000
 
Replies continue below

Recommended for you

If you have a UI styler/block styler license, you can build a custom input box using 'building blocks' from standard NX dialog boxes.

If you do not have such a license, there are a few functions that will show dialog boxes for the user to interact with. Among these are:
[ul][li]PointConstruct[/li]
[li]SpecifyScreenPosition[/li]
[li]SpecifyVector[/li]
[li]SpecifyPlane[/li]
[li]SpecifyCsys[/li][/ul]

Unfortunately, there is no generic 'command launcher'.

www.nxjournaling.com
 
Ok, but thanks anyway. ;-)

Best regards,
Polynom3000
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor