Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Unigraphics NX Open API. Some troubles

mannyz

New member
All greetings!

The essence is: to create .dll-file with NX Open API (for C++) which is used in
Unigraphics NX and export the contents of the opened file (.prt) in a xml-file.
Please, can you tell me how to do the following (or what API functions should be
used):

1. identifying in the model (opened .prt-file) references to objects (or, may be
correct name, set references). That is, we need to write in the xml-file
complete information about duplicate elements (pattern) only once and add to
description of the model information where to insert this pattern (for example,
when we use array from bolts). All functions that was in the file uf_assem.h i
have tried to use, but nothing intelligent failed.

2. need to export in the xml-file data about points. In this case it would be
good to be able to separate information about the "system" points (apparently
there is in a model, because I've drawn only two points and counted in my
program as many as 34) and "user" points. By the way, I have not even found the
method to read the point information (coordinates and all that). It is clear
that we have a some cycle that iterates model objects, and we look at the type
and subtype of this objects. That is, to understand what is the point we can.
But what is the next step? I found only a class 3dPoint.

3. how can we affect the quality of facet mesh (facet model)? May be i need to
use structure "parameters" in a call of function UF_FACET_facet_solid? If yes
then how?
int UF_FACET_facet_solid
(
tag_t solid_entity,
UF_FACET_parameters_p_t parameters,
tag_t * facet_model
)


By the way, can someone to share some materials about NX Open API (it's
desirable with example for C++) except official NX Documentation? :))

Help, please
 

Sponsor

Articles From 3DCAD World

Back
Top