I am merely trying to add a section on an existing datum plane in a new
assembly that I created. The following snippet of code is how I was
doing it. I was able to create the x-sec, but looking at it after the
fact (without toolkit, just Pro), it displays wrong in the assembly as
well as on a drawing. Plus if I try to alter the section Pro crashes.
Does anyone know a different approach I may take? Thanks.
CString prt, prt2, prt3, prt4;
ProMdl mdl, comp1, comp2, comp3;
mdl = TkMdlRetrieve(m_sCompPath, prt);
comp1 = TkMdlRetrieve(m_sCompPath, prt2);
pasm = (ProAssembly)mdl;
assy_err = ProModelitemByNameInit(pasm, PRO_SURFACE,
assy_err = ProGeomitemToSurface((ProGeomitem*)&asm_datum,
assy_err = ProSurfaceIdGet(surf, &i_dtm);
ProXsecPlanarCreate((ProSolid)mdl, sect, i_dtm,
PRO_XSECTYPE_MODEL, NULL, &pxsec);
(856) 829-5522 ext 56
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.