I’m setting DWG line widths using object styles (thanks @Thomas_Mahon unfortunately the views are ignoring those settings, so i need to use visibility graphics…
However I can’t see an API method for this, would anyone be able to assist? Visibility is there and colour, but not line weight?
Actually, maybe it’s here…
hmm… this only sets the object style, not the view
importInstance = UnwrapElement(IN) layerName = IN lineWeight = IN lineColour = Color(0,0,0) subCategories = importInstance.Category.SubCategories if subCategories.Contains(layerName): TransactionManager.Instance.EnsureInTransaction(doc) subCategories.get_Item(layerName).SetLineWeight(lineWeight, GraphicsStyleType.Projection) TransactionManager.Instance.TransactionTaskDone() OUT = 'success' else: OUT = 'fail'