Example #1
0
        private void changePatternCell(Element elem)
        {
            PatternParams ppar     = new PatternParams();
            Point3d       origin   = app.Point3dFromXYZ(20, -6, 0);
            int           modelRef = elem.ModelReference.MdlModelRefP();
            int           elmP     = elem.MdlElementDescrP();
            int           MSElemP  = ElmdscrAccessor_getMSElement(elmP);

            mdlPattern_extractAssociative(ref ppar, ref origin, MSElemP, modelRef, 0);
            ppar.cellId = 2264448492371968;
            mdlPattern_addAssociative(ref elmP, -1, -1, ref ppar, ref origin, ref ppar.rMatrix, "PATTERN_AREA", modelRef);
            elem = app.MdlCreateElementFromElementDescrP(elmP);
        }
Example #2
0
 public static extern int mdlPattern_extractAssociative(ref PatternParams pParams, ref Point3d pOrigin,
                                                        int elemP, int modelRef, int index);
Example #3
0
 public static extern int mdlPattern_addAssociative(ref int edPP, int line1, int line2,
                                                    ref PatternParams pParams, ref Point3d pPoint, ref Matrix3d pRot, string option_, int modelRef);