• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

rename sheets idw multisheet

  • Thread starter Thread starter matteostasim
  • Start date Start date

matteostasim

Guest
Hello.
Obviously I have previously searched but found nothing (although it seems strange).
for practicality I often find myself using multisheet table puts for my assemblies. When the assemblies contain many elements, I struggle to orient myself between the sheets.
I would be extremely comfortable and functional to make sure that the sheet names in the browser were not the default sheet1... sheetn but that they assumed the name of the assieme or the represented part. Of course I don't think about doing it manually.
So I turn to the ilogics. is it possible to edit a rule that updates all the names of the sheets with the "number part" of the contained object?
allego screenshot to make me understand better
Thank you.
 

Attachments

  • Screenshot_111.webp
    Screenshot_111.webp
    30.6 KB · Views: 14
perdonate,
a cercare meglio si trova tutto.
non riuscendo a cancellare il post, pubblico la regola che ho trovato in giro e che mi sarà moooolto comoda. magari lo può essere anche per qualcun altro
mi sono limitato a copiare e incollare e funziona :)

sub main
if typeof thisdoc.document is drawingdocument then
dim dwgdoc as drawingdocument = thisdoc.document
for each dwgsheet as sheet in dwgdoc.sheets
if dwgsheet.drawingviews.count > 0 then
modelfile = dwgsheet.drawingviews(1).referenceddocumentdescriptor.fulldocumentname
modeldoc = dwgsheet.drawingviews(1).referenceddocumentdescriptor.referenceddocument
prtnumber = modeldoc.propertysets("{32853f0f-3444-11d1-9e93-0060b03c1ca6}").itembypropid(5).value
if not string.isnullorempty(prtnumber) then
dwgsheet.name = prtnumber
end if
end if
next
end if
end sub
 

Attachments

  • Screenshot_112.webp
    Screenshot_112.webp
    67.8 KB · Views: 16
thank you,and if it can serve I found this free app that binds you page number to part number
go to the inventor's app store and search "

quickviews​

symmetry"
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top