Hi All,
I’m trying to interrogate a few things about dwg files which are linked into revit models.
- I’d like to know for each dwg drawing on which view and workset it is placed.
(I’ve made a start but cant really get the proper workset names)
- I’d like to filter out all dwg files which have been imported into the model instead of linked in
(not sure how to do this really)
- I’d like to filter out all dwg files which have been linked in ‘all views’ rather then ‘current view’
(not sure how to do this really)
- I’d like to move all dwg files onto a specific workset
(I get an error message saying that the workset parameter is a ready only?)
Any help for above would be v. much appreciated.
I’ve uploaded my script, revit model + dwg files.
Many thanks,
Stephan
Drawing 1_linked in_one view only.dwg (815.3 KB)
Drawing 2_linked in_one view only.dwg (480.6 KB)
Drawing 3_linked in_all views.dwg (657.9 KB)
Drawing 3_linked in_all views.dwg (657.9 KB)
dwg-management.rvt (6.9 MB)
DWG-mangement.gh (19.7 KB)
Drawing 3_linked in_all views.dwg (657.9 KB)
Japhy
(Japhy)
2
Thanks for providing all the info, i’ll get into this shortly.
Thank you @Japhy that would be great.
Japhy
(Japhy)
4
Here is how to get all the views where the import is visible.
RiR-R8-CheckViewsForDWG.gh (12.0 KB)
Japhy
(Japhy)
5
There is an .IsLinked property on the ImportInstance
RiR-R8-IsLinked.gh (10.9 KB)
Japhy
(Japhy)
6
Not seeing anything related to this on an existing Element.
Japhy
(Japhy)
7
This is working as expected for me
Thank you very much @Japhy for your responses, very much appreciated.
Wrt the Python script for the ‘isLinkedProperty’ this is not working from me. Do i need to download something for this?
Many thanks,
Japhy
(Japhy)
9
Please post your SystemInfo, thanks.
Japhy
(Japhy)
11
Rhino 7, gotcha. Please specify the Rhino version and Revit Version when asking questions. If not the most current versions is assumed. Thanks
Here get
RiR-R7-IsLinked-PY.gh (3.3 KB)
property in the old python editor version
1 Like
Hi @japhy and all,
silly question but how can you list all dwgs in a project if they all have a different name?
I think in the example i sent all dwg started with the same name (drawing) but if this is not the case how would this work?
I’d like to be able to use the value picker.
Many thanks,
Stephan
Japhy
(Japhy)
13
You can search for Ends With as well… >.dwg
> Ends with
< Starts with
? Contains, same as a regular search
: Wildcards
; Regular expression
1 Like