2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2018-11-19
10:01 AM
- last edited on
2022-10-05
01:31 PM
by
Daniel Kassai
Solved! Go to Solution.
2018-12-04 06:06 PM
Arc wrote:Here it is:
Thank you for the reply.
Is there an example I can refer to as reference with regards to using this function?
void ElementExporter::GetBaseElemId (const ModelerAPI::Element& element, ModelerAPI::BaseElemId* baseElemId) { GS::NonInterruptibleProcessControl processControl; element.GetBaseElemId (baseElemId, processControl, ModelerAPI::Element::EdgeColorInBaseElemId::NotIncluded, ModelerAPI::Element::PolygonAndFaceTextureMappingInBaseElemId::NotIncluded, ModelerAPI::Element::BodyTextureMappingInBaseElemId::NotIncluded, ModelerAPI::Element::EliminationInfoInBaseElemId::NotIncluded); }Regards, Akos
2018-11-20 12:00 PM
2018-11-22 11:08 AM
ModelerAPI::Element element; ModelerAPI::BaseElemId baseId; element.GetBaseElemId(&baseId);
ModelerAPI::Element element; ModelerAPI::BaseElemId baseId = element.GetBaseElemId();Neither of the above seem to be able to just give me the BaseElemId. The first one requires me to also add a bunch of parameters that I don't know how to initialise and does not seem to accept nullpointers. The second one cannot work because it is a void function and thus does not return anything. Is there an example I can refer to as reference with regards to using this function?
2018-12-04 06:06 PM
Arc wrote:Here it is:
Thank you for the reply.
Is there an example I can refer to as reference with regards to using this function?
void ElementExporter::GetBaseElemId (const ModelerAPI::Element& element, ModelerAPI::BaseElemId* baseElemId) { GS::NonInterruptibleProcessControl processControl; element.GetBaseElemId (baseElemId, processControl, ModelerAPI::Element::EdgeColorInBaseElemId::NotIncluded, ModelerAPI::Element::PolygonAndFaceTextureMappingInBaseElemId::NotIncluded, ModelerAPI::Element::BodyTextureMappingInBaseElemId::NotIncluded, ModelerAPI::Element::EliminationInfoInBaseElemId::NotIncluded); }Regards, Akos
2018-12-05 08:59 AM
2021-06-19 09:05 AM
2021-06-22 01:28 AM
2021-06-25 06:16 PM
meshBody.GetVertex(vertexId, &positionW);
meshBody.GetVertex(vertexId, &positionW, ModelerAPI::CoordinateSystem::World);
meshBody.GetVertex(vertexId, &positionL, ModelerAPI::CoordinateSystem::ElemLocal);