Based on what I learned so far, I’ve managed to make a few custom scripts that helps me a lot.
My new dream is this:
I have different drawing in A0,A1,A2 and A3
On some drawings the scale is 1:100 and on others its 1:50
Some of the drawings will be printed on A3 paper in addition to it’s original paper. Based on this there is a project parameter called NTI_Scale (The scale of the drawing if its printed on A3 paper)
Is there a way to read scale(shared parameter “Skala” or built in paramater “Scale”) and papersize (shared parameter “Orginalformat”), compare them and write the proper A3 scale on the drawings?
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import * #The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
a = IN[0]
b = IN[1]
c =
for i,j in zip(a,b):
if i == “1:50” and j == “A0”: c.append(“1:141”)
elif i == “1:50” and j == “A1”: c.append(“1:100”)
elif i == “1:50” and j == “A2”: c.append(“1:71”)
elif i == “1:50” and j == “A3”: c.append(“1:50”)
elif i == “1:100” and j == “A0”: c.append(“1:283”)
elif i == “1:100” and j == “A1”: c.append(“1:200”)
elif i == “1:100” and j == “A2”: c.append(“1:141”)
elif i == “1:100” and j == “A3”: c.append(“1:100”) #Assign your output to the OUT variable.
OUT = c