Im trying to create a dimension by extracting reference objects from model curves and appending them to a referenceArray . Anyone knows how could I extract references from model curves to include them inside the NewDimension function? Ive tried reading the documentation about reference objects but ive stil not found anything useful.Ive seen some genius loci packages to extract wall references, what if I wanted to only get references fom lines and walls without having to use external packges?
I would really appreciate any help,
new_dimension=doc.Create.NewDimension(doc.ActiveView, line, elements_ref)
line = UnwrapElement(IN).GeometryCurve #line=IN references=UnwrapElement(IN) doc = DocumentManager.Instance.CurrentDBDocument opt=Options() opt.ComputeReferences = True opt.IncludeNonVisibleObjects = True opt.View = doc.ActiveView elements_ref=ReferenceArray() for element in references: elements_ref.Append(element.get_Geometry(opt)) TransactionManager.Instance.EnsureInTransaction(doc) new_dimension=doc.Create.NewDimension(doc.ActiveView, line, elements_ref) TransactionManager.Instance.TransactionTaskDone()