×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Extract Advance Weight Management Data API

Extract Advance Weight Management Data API

Extract Advance Weight Management Data API

(OP)
Hi,

I need to extract all the Weight Management which is exported to excel when done manually for a top level assembly including its children.

Manually the menu is available in "Analysis" Menu.

I found an API
public void EstabPartProps
(
Tag part,
double accuracy,
bool recurse,
UFWeight..::.UnitsType units,
out UFWeight..::.Properties properties,
out UFWeight..::.Exceptions exceptions
)

which is a wrapper method for UF_WEIGHT_estab_part_props

int UF_WEIGHT_estab_part_props
(

const tag_t part,
const double accuracy,
const logical recurse,
const UF_WEIGHT_units_type_t units,
UF_WEIGHT_properties_t * properties,
UF_WEIGHT_exceptions_t * exceptions

)

const tag_t part(Input) :The part whose weight properties are to be
established.

const double accuracy (Input): The accuracy to which the part's properties
are to be calculated.

const logical recurse (Input) : True if the properties are to include
components of the part, false otherwise.

const UF_WEIGHT_units_type_t units (Input): The units in which the properties are to be returned.

UF_WEIGHT_properties_t * properties (Output) : The established properties of the part.

UF_WEIGHT_exceptions_t * exceptions (Output) : to be freed Any exceptions encountered during the calculation. This must be freed by
calling UF_WEIGHT_free_exceptions.
If i use this i can get the Weight management details only for the top level assembly. When i pass the "TRUE" flag to this API which states that "it has to be set as TRUE if properties are to include components of the part, false otherwise".

Still i am not getting all the components data.

And also i am confused between the terminology used in the documentation. There are three differenct API's for Part, Component and Solid.
UF_WEIGHT_estab_part_props
UF_WEIGHT_estab_comp_props
UF_WEIGHT_estab_solid_props
How is it different.?
Regards,
Santosh

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources