I’m trying to get the boudnary curves of a reference callout.
Usually it is easy with regular view using View.GetCropBoxCurves. The problem with the reference callout is that it is not an actual view - it is just a reference but still it has boudnary curves. One possible approach is what @Dimitar_Venkov suggested for callouts - Objects in Callouts. This works - but the problem is that the bounding box is including also the callout head - which is not quite right.
The only way to get this information is with Python. I recommend trying to use the API method you found. It’s definitely worth getting yourself familiar with Python.
Yes, I know that learning Python will be good investment =) I already know the basics but some methods are difficult.
Tomorrow I will share my progress and what errors I get. Hope someone will give me a clue how to fix the script.
Cheers!
i try to make a callout from the outline of some scope boxes i Create the views that i need for the callout and i just want to make a call out refer to the views that i Created
#The inputs to this node will be stored as a list in the IN variables.
if isinstance(IN[0], list):
callouts = UnwrapElement(IN[0])
toggle = 0
else:
callouts= UnwrapElement(IN[0])
toggle = 1
listout =
regions=
for x in callout:
regions=View.GetCropRegionShapeManagerForReferenceCallout
(doc,x.Id).GetCropShape()
if len(regions) > 0:
lines = [t.ToProtoType() for y in regions[0]]
listout.append(lines)
else:
listout.append()
#Assign your output to the OUT variable.
if toggle == 0:
OUT = listout
else:
OUT = lines
Sorry about that, you may search for Dynamo node which somebody already created - but there is no such a node as far as I know. I recommend you to start exploring different options for learning Python = ) There are a lot of online recourses - for example - https://learndynamo.com/ . It is good starting point. Good luck!