Sheet order problem after printing with pyRevit

Sheet order problem after printing with pyRevit

jamiew2ULKB
Contributor Contributor
3,492 Views
9 Replies
Message 1 of 10

Sheet order problem after printing with pyRevit

jamiew2ULKB
Contributor
Contributor

So I got an issue. I used a command in pyRevit to print from a sheet index. Thing is, it actually reordered the sheets in my browser to match the sheet index somehow. If thats not strange enough, when I make new sheets now they dont't fall into order since doing this printing. Sheets 3.3 and 4.4 below were made recently and will not fall into place. It acts like it's ignoring the sheet number system parameter.

 

Anyone have any experiences with this add in?

 

Capture.PNG

0 Likes
3,493 Views
9 Replies
Replies (9)
Message 2 of 10

RDAOU
Mentor
Mentor

@jamiew2ULKB 

 

  1. Check if Pyrevit added any parameters based on which it is sorting the sheets in the browser
  2. Either add the same to the new sheets or re-run the same command from Pyrevit hoping it will overwrite old and add new
  3. If it keeps bugging you >>> Disable the add-in 

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


Message 3 of 10

jamiew2ULKB
Contributor
Contributor

No parameters were added. I will look again sometime.

 

I can run the print command again, and it will print off of a sheet list. But since I can't change the sheet list order based on the system parameter of sheet number, it doesn't do me any good.

 

Uninstalling doesn't do anything. The issue is now somewhere in the file.

 

I'm just going to add a "sheet order" instance parameter because the schedules will obey that. They just will not use the system parameter for sheet number anymore.

0 Likes
Message 4 of 10

jamiew2ULKB
Contributor
Contributor

Also just noticed this mark on the the sheet near the sheet number. Anyone know what it means? Seems to have showed up when my problems started.

 

Capture.PNG

0 Likes
Message 5 of 10

ToanDN
Consultant
Consultant

It is an Unicode character added to the Sheet Number to re-order the Sheets in browser and print. 

Message 6 of 10

jamiew2ULKB
Contributor
Contributor

Oh I see that's whats going on then for sure. Why pyRevit command is doing that? Can I control it other than deleting that character from the sheet numbers?

0 Likes
Message 7 of 10

TimHevel
Contributor
Contributor

@Anonymous 

@Anonymous 

0 Likes
Message 8 of 10

TimHevel
Contributor
Contributor

I think I found out what happened,

The script places a certain number of "invisible" characters in front of the sheet number, to be able to print in the right order. but doensn't delete them afterwards(which it probably should)

The amount of characters is probably determined by the index shown in the print menu.

You are able to delete them manualy by editing the sheet number, clicking in front of the sheetnumber, draging to the left and deleting.

 
 

"invisible" characters."invisible" characters.when selecting invisble char. textcursor  blinks orange/bluewhen selecting invisble char. textcursor blinks orange/blueable to copy pasteable to copy paste

But the re-value tool in pyRevit makes quick work of this by applying this:

-first find the ones not affected by the script by clicking on the number for the origional format and to someting similar to this.

re-value unaffected numbersre-value unaffected numbers

-if you try to do the same to the remaining numbers it will only rename the one you selected for the origional format.trying the same on remaindertrying the same on remainder

-to remedy ad {} in front by clicking behind the first charcter of the visible number and moving to the left ones with the arrow key and placing "}", now hit the left arrow a bunch of times to make sure you are infront of all the invisible characters and place "{ "(it now should look something like this).

solutionsolution

 

you can now hit 'apply new values'

 

next time you use the script it will probably screw it up again.

but this is the fastest way to fix it.

 

Message 9 of 10

stulsankar
Participant
Participant

thankyou 
@TimHevel 

0 Likes
Message 10 of 10

creed
Contributor
Contributor

The fastest fix is to hold down the shift key and click the PRINT SHEET in pyrevit again.  It will clear the  listing and you will see that arrow go away on your sheet numbers. Then you are set to print sheets again using the same button.