Revision: 57833
          http://sourceforge.net/p/brlcad/code/57833
Author:   starseeker
Date:     2013-09-23 15:54:53 +0000 (Mon, 23 Sep 2013)
Log Message:
-----------
Add design context

Modified Paths:
--------------
    brlcad/trunk/src/conv/step/g-step/Assembly_Product.cpp
    brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp

Modified: brlcad/trunk/src/conv/step/g-step/Assembly_Product.cpp
===================================================================
--- brlcad/trunk/src/conv/step/g-step/Assembly_Product.cpp      2013-09-23 
15:46:06 UTC (rev 57832)
+++ brlcad/trunk/src/conv/step/g-step/Assembly_Product.cpp      2013-09-23 
15:54:53 UTC (rev 57833)
@@ -48,6 +48,7 @@
  * 
((#19))GLOBAL_UNIT_ASSIGNED_CONTEXT((#13,#17,#18))REPRESENTATION_CONTEXT('ID52','3'));
  *
  * #100=APPLICATION_CONTEXT('CONFIGURATION CONTROLLED 3D DESIGNS OF MECHANICAL 
PARTS AND ASSEMBLIES');
+ * #1001=DESIGN_CONTEXT('',#100,'design');
  *
  * // seems to be a list of AXIS2_PLACEMENT_3D objects - does this put all the 
axis
  * // in a representation context?  Used by the REPRESENTATION_RELATIONSHIP 
objects.
@@ -75,7 +76,6 @@
  * // Solid shape representation  Looks like this is the bit that needs to be 
created
  * // for each solid - should be done by the SHAPE_DEFINITION_REPRESENTATION 
logic.
  * #200=ADVANCED_BREP_SHAPE_REPRESENTATION();
- * #1001=DESIGN_CONTEXT('',#100,'design');
  * #1002=MECHANICAL_CONTEXT('',#100,'mechanical');
  * #1003=PRODUCT('Geometric_Shape_01','Geometric_Shape_01','NOT 
SPECIFIED',(#1002));
  * 
#1004=PRODUCT_DEFINITION_FORMATION_WITH_SPECIFIED_SOURCE('1','LAST_VERSION',#1003,.MADE.);

Modified: brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp
===================================================================
--- brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp     2013-09-23 15:46:06 UTC 
(rev 57832)
+++ brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp     2013-09-23 15:54:53 UTC 
(rev 57833)
@@ -65,11 +65,19 @@
     mech_context->frame_of_reference_(app_context);
     app_context->application_("'CONFIGURATION CONTROLLED 3D DESIGNS OF 
MECHANICAL PARTS AND ASSEMBLIES'");
 
+    // DESIGN_CONTEXT - TODO, should be one of these per file?
+    SdaiDesign_context *design_context = (SdaiDesign_context 
*)registry->ObjCreate("DESIGN_CONTEXT");
+    instance_list->Append((STEPentity *)design_context, completeSE);
+    design_context->name_("''");
+    design_context->life_cycle_stage_("'design'");
+    design_context->frame_of_reference_(app_context);
+
     // PRODUCT_DEFINITION
     SdaiProduct_definition *prod_def = (SdaiProduct_definition 
*)registry->ObjCreate("PRODUCT_DEFINITION");
     instance_list->Append((STEPentity *)prod_def, completeSE);
     prod_def->id_("''");
     prod_def->description_("''");
+    prod_def->frame_of_reference_(design_context);
 
     // PRODUCT_DEFINITION_FORMATION
     SdaiProduct_definition_formation *prod_def_form = 
(SdaiProduct_definition_formation 
*)registry->ObjCreate("PRODUCT_DEFINITION_FORMATION");

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to