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!