twk Posted January 21, 2018 Share Posted January 21, 2018 Greetings and Happy New Year to you all, Has anyone figured out how to duplicate an object (locus,symbol) along a 2D path, be it a polyline, polygon? Developing a plugin to take a symbol object and have it duplicate along the Plugins 2D path (this being a 2D poly path plugin object type). Have tried the : def vs.GetPointAndParameterOnNurbsCurveAtGivenLength(inNurbCurve, inPercentOfLength): return (BOOLEAN, p, outParam, outIndex) by converting the 2D path to a nurbs object, running the calc, then copying the /out/ data to the 2D path poly. However just realised the convert to Nurbs command takes into account the orientation of the view. This makes it not feasible for a path-pio object. Any ideas? Cheers, Tui Quote Link to comment
Hippocode Posted January 22, 2018 Share Posted January 22, 2018 You can change your view to 2D and reset it after you run that function. Quote Link to comment
BillW Posted January 22, 2018 Share Posted January 22, 2018 Why not use Python equivalent of PointAlongPoly(h: HANDLE; dist: REAL; VAR ptX, ptY, ptZ: REAL; VAR tangentX, tangentY, tangentZ: REAL) : BOOLEAN; Always a good idea to check file "VWPluginLibraryRoutines.p" in user plugins folder for non documented calls. Quote Link to comment
twk Posted January 22, 2018 Author Share Posted January 22, 2018 Thanks @Hippocode and @BillW. Was just looking through the dev wiki and totally missed that one. Thanks heaps! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.