When I Export Gc StructMenber to new model,I got an error message .Please help me! Thanks.
transaction 1 stateChange '添加 CS, line1, point1, point2' { gcModel { node User.Objects.CS Bentley.GC.NodeTypes.CoordinateSystem { Technique = 'AtDGNModelOrigin'; DGNModelName = 'Design Model'; GraphLocation = {15.92, -114.08, 174.0, 122.26}; } node User.Objects.point1 Bentley.GC.NodeTypes.Point { Technique = 'ByCartesianCoordinates'; CoordinateSystem = CS; XTranslation = <free> 4500.0; YTranslation = <free> 0.0; ZTranslation = <free> 0.0; GraphLocation = <auto> {40.0, 40.0}; } node User.Objects.point2 Bentley.GC.NodeTypes.Point { Technique = 'ByCartesianCoordinates'; CoordinateSystem = CS; XTranslation = <free> 6000.0; YTranslation = <free> 3000.0; ZTranslation = <free> 7500.0; GraphLocation = <auto> {40.0, 246.21}; } } } transaction 2 stateChange '添加 sName' { gcModel { node User.Objects.sName Bentley.GC.NodeTypes.Value { Technique = 'Default'; Value = '1\CN_TN\TN175X175'; GraphLocation = <auto> {289.92, -114.08}; } } } transaction 3 stateChange '添加 structuralMember1' { gcModel { node User.Objects.structuralMember1 Bentley.GC.NodeTypes.StructuralMember { Technique = 'ByFunction'; Function = function() { /* CatalogItem = {'Steel Column','柱子'}; StartPoint = point1; EndPoint = point2; CrossSection = '1\CN_HN\HN248X124X5X8'; Part = {'Steel', 'Columns_BracedFrame'}; StructuralFramingCommon_sectionname = '1\CN_HN\HN248X124X5X8'; StructuralLocation_ColumnLocation = 'N/A'; */ string myCatalog = {'Steel Column','柱子'}; string myPart = {'Steel', 'Columns_BracedFrame'}; StructuralMember sMember01=new StructuralMember (this); sMember01.ByPoints (myCatalog ,point1 ,point2 ,PlacementPoint .BottomRight ,sName ,myPart ,90); }; GraphLocation = {286.464, 43.744, 0.0, 166.21}; } } } transaction 4 stateChange '添加 export1' { gcModel { node User.Objects.export1 Bentley.GC.NodeTypes.Export { Technique = 'ExportNodesAsElementsToAnotherModelWithinActiveDesignFile'; NodesToExport = structuralMember1; DGNModelName = '111'; AutoProduceOnUpdate = false; GraphLocation = {288.755, 249.52, 0.0, 160.91}; } } }
Hello Ren,
I have got the mentioned issue when i run your script. But after that if i create a new model with Type as Design From Seed and then select the model from the dropdown in the export node then the model is exporting fine in that mentioned model. Please refer the attached images. I hope this helps your query.
Regards,Alifur
Answer Verified By: Ren Quan 任全
I see. Thinks. @Alifur Mandal