Creating LENGTH_UNIT entity for output

23 views
Skip to first unread message

gkovacsds

unread,
Oct 15, 2015, 6:41:48 PM10/15/15
to STEPcode - Developers Mailing List
I'm new to StepCode, trying to achieve geometry output (AP210).

I'm stuck on creating a valid LENGTH_UNIT entity.
My code so far:

 // InstMgr* is;      

 
SdaiLength_unit* lu = new SdaiLength_unit();
 
SdaiSi_prefix_var* pv =  new SdaiSi_prefix_var();
 
*pv = Si_prefix__milli;
 
SdaiSi_unit* su = new SdaiSi_unit();
 su
->prefix_( *pv );
 
SdaiSi_unit_name_var* sun = new SdaiSi_unit_name_var( Si_unit_name__metre );
 su
->name_( *sun );

 
???

 
is->Append( lu, completeSE );

What should be written to the place of ??? to achieve on creating the output file:

#xxx=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));

Now it just outputs:
#xxx=LENGTH_UNIT($);

How can I put the SI_UNIT after LENGTH_UNIT, shall I also add a NAMED_UNIT too? How to link these after each other to one line of STEP output?

Thank you!

gkovacsds

unread,
Oct 29, 2015, 8:25:47 AM10/29/15
to STEPcode - Developers Mailing List
OK, I've found the code in the included ap203min example, using a class called STEPComplex.

Reply all
Reply to author
Forward
0 new messages