Hans-Olav Posted January 28, 2019 Share Posted January 28, 2019 I have a file with 99 3d polys (circles) with right z height and are planning to do a DTM. Anyone who can make a script to replace the 3d polys with a 3d loci in the centre of each? Quote Link to comment
0 Marionette Maven Marissa Farrell Posted January 28, 2019 Marionette Maven Share Posted January 28, 2019 Can you provide a dummy file with a small subset of these objects? Quote Link to comment
0 Hans-Olav Posted January 28, 2019 Author Share Posted January 28, 2019 Hi Marissa Thanks for looking into this! test.vwx Quote Link to comment
0 markdd Posted January 28, 2019 Share Posted January 28, 2019 You could use the Replace with Symbol command. Replace it with a symbol that contains just a 3D locus. If you set it to convert to group on insertion then it will give you 99 loci which you just need to select and ungroup. Just tried it and it works fine test done.vwx 3 Quote Link to comment
0 Hans-Olav Posted January 28, 2019 Author Share Posted January 28, 2019 Fabulous! I had forgot that command Quote Link to comment
0 Marionette Maven Marissa Farrell Posted January 28, 2019 Marionette Maven Share Posted January 28, 2019 In addition to Mark's suggestion - here's a Python script that will find all of the 3D polys on the active layer and replace their center point with a 3D locus. My limited testing leads me to believe it works fine 😛 lName = vs.GetLName(vs.ActLayer()) def createLoci(h): (p, zValue) = vs.Get3DCntr(h) vs.Locus3D(p, zValue) vs.DelObject(h) vs.ForEachObject(createLoci, "((L='"+lName+"') & (T=POLY3D))") 1 Quote Link to comment
0 lgoodkind Posted September 4, 2019 Share Posted September 4, 2019 Isn't the 3D Polys to 3d Loci command supposed to do this? I've tried but that too fails. see image for error Quote Link to comment
Question
Hans-Olav
I have a file with 99 3d polys (circles) with right z height and are planning to do a DTM.
Anyone who can make a script to replace the 3d polys with a 3d loci in the centre of each?
Link to comment
6 answers to this question
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.