Hi,
I would really appreciate some help with the below.
I’ve managed to get a script working which extracts lines from a dwg and converts to Revit gridlines.
I was also hoping to scale with Geometry.Scale.
However, whether I have an input of 1 or 10, the length of the lines isn’t changing as below:
Grids from dwg.dyn (476.9 KB)
The thing is you’re using a 0,0 point to scale, so it’s multiplying by 0, therefore not scaling. Try making the first point 0,1 and the second one 0,5, this way you’ll have a 5x scale. Try thinking about the Revit workflow when scaling with reference instead of by number.
Hi, many thanks for the suggestion, unfortunately this was one of the things I tried as I thought the zero values might cause issues.
Even ridiculous values as below makes no difference.
A few things could be at play here.
-
Not all geometry can scale, and some cannot scale non-uniformly, which this appears to be doing.
-
Your geometry will relocate when scaled, and the previous geometry display will persist. This means you might have right geometry but not where you expect it. Disable the geometry display for all previous nodes and zoom extents to confirm.
-
You may have a lacing issue based on inputs (unlikely as the points are singletons and therefore longest should apply, but worth noting all the same).
To help deal with both of these I recommend the Geometry.Scale node takes a plane and scale factor as an inout.
Hi,
Many thanks for the suggestions.
I have tried a few more things but in the end I found that because these are straight lines I am able to use the Curve.Extend nodes to achieve my goal.
2 Likes