Skip to main content
1-Visitor
September 10, 2020
Solved

PlaneId is different from created Datum Plane feature ID

  • September 10, 2020
  • 1 reply
  • 1185 views

Hi,

 

My requirement: Create a datum plane in assembly referring to a surface. Then use this datum to create a section in assembly.

I created datum plane by populating element tree.

wfcWFeature_ptr datumFeat= currSolid->WCreateFeature(elemTree, featOpts);

 

I get datum created correctly. Now I want to use this datum for creating section. so I query its ID by 

planeID = datumFeat->GetId();  //ID i got is 43

 

When I create a section by 

parentSOlid->CreatePlanarXSection(sectionName, planeId, cutObjtype, memberIdTable, quiltID, xtrue, compExcl);

system gives me error.

 

So I reselected the created datum and checked for its ID, it is 44. Now if I give this ID to above section function, it works well.

 

Am I missing something to differentiate between planeID and datum feature ID. 

Best answer by FV_01

IDs have to be different - one is for a feature and another is for surface's ProGeomitem.

FV_0-1599846325057.png

 

a feature has dependent geometry items or one item in case of a datum plane.

 

1 reply

FV_0117-PeridotAnswer
September 11, 2020

IDs have to be different - one is for a feature and another is for surface's ProGeomitem.

FV_0-1599846325057.png

 

a feature has dependent geometry items or one item in case of a datum plane.