evlength question
papawo
Member, Developers Posts: 206 PRO
when I select several lines evlength add the total length and extrude.
How to keep each extrude the same length as the sketch line but able to still select multiple line.
How to keep each extrude the same length as the sketch line but able to still select multiple line.
Tagged:
0
Best Answer
-
You can use 'evaluateQuery(...)' to get all the lines as individual queries, and then use a for loop over the lines:
const lines = evaluateQuery(context, lineQuery); for (var line in lines) { const lineLength = evLength(context, { "entities" : line }); // extrude(...) or opExtrude(...) using lineLength }
Jake Rosenfeld - Modeling Team5
Answers
-
You can use 'evaluateQuery(...)' to get all the lines as individual queries, and then use a for loop over the lines:
const lines = evaluateQuery(context, lineQuery); for (var line in lines) { const lineLength = evLength(context, { "entities" : line }); // extrude(...) or opExtrude(...) using lineLength }
Jake Rosenfeld - Modeling Team5

