I have a set of <Part::PartFeature> created with Part.makeBox(...).
I have added to the document a TechDraw::DrawPage page and then a "TechDraw::DrawViewPart" view of my boxes.
I would like to add dimensions on this TechDraw::DrawPage page for some edges of some boxes (one of the top edges).
I can identify the right edges I like from the boxes (TechDraw::DrawPage) by iterating on the obj.Shape.Edges (ie, I have a list of such Edges).
How can I give the a dimension a reference to these edges ?
I have tried the following
Code: Select all
dim = doc.addObject("TechDraw::DrawViewDimension", "Dimension")
dim.Type = "DistanceX"
dim.References3D = [
(doc.getObject("id_of_my_box"),"Edge10",),
]
If References2D is required, how can I map it from the References3D?