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.
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).
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
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