Copy Dimensions between views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Has anyone ever tried to write a script to copy dimensions between views? I don't think it is an easy task to do, but it would be a nice function for things like our story pole parts, which are just a sketch tied to adaptive planes. In the drawing template I have the main room story pole view pre-dimensioned, but any added story poles for windows and doors have to be manually dimensioned. Picture for context:
The window and door story poles were made from a copy of the main room story pole with 2 additional sketch lines/planes for the doors and 4 for the windows. It would be nice to be able to copy the main room dimensions to the other two views, preferably with text but I already have a separate script to automate adding the text to dimensions if it can't be included.
I would imagine I would have to store all the information needed to add a dimension [probably limited to LinearGeneralDimensions: ( TextOrigin As Point2d, IntentOne As GeometryIntent, [IntentTwo] As Variant, [DimensionType] As DimensionTypeEnum)] and then find corresponding intent objects in the other view to add new dimensions.
Has anyone managed to write something like this or found that it is just not possible?
I know it seems a little trivial for this example because it doesn't take much time to manually add the dimensions, but if the concept works here I think I could get it to work for some of our other standardized parts that appear in multiple views throughout the drawing set and have to be dimensioned each time.