Page 1 of 1

Property Tab Builder & a Changeable/Selectable Value for Sheet Number Problem.

Posted: Wed Jul 07, 2021 3:26 pm
by Conklin
In my drawing templet I have set a custom property for the sheet number, that the title block will look at to get its value.
SOLIDWORKS Professional 2020 SP5.0 - PTB-00.jpg

I have set up a “Pull Down List” in the “Property Tab Builder” to be able to select/chose what I would like the custom property to be.
All is good EXCEPT when I chose “$PRP:”SW-Current Sheet” from the list.
SOLIDWORKS Professional 2020 SP5.0 - PTB-01.jpg

I save the file:
SOLIDWORKS Professional 2020 SP5.0 - PTB-02.jpg

It is good UNTIL I reopen the file and the “Evaluated Value” pops into the “Property Tab Builder” selection box.
SOLIDWORKS Professional 2020 SP5.0 - PTB-03.jpg

Then all sheets in the file will take on the value of the sheet I am on when I open the “Property Tab Builder”

Note: My Assemblies are usually the only sheets that are multiple sheet files and they usually start with sheet No “1” If it is a detail sheet, the number comes from the model (or if I need to I can over ride that by picking from the list or just type in a number)

I just want to know if there is a way to prevent the “Evaluated Value” from filling in the PTB box upon reopening the file? Why can it not stick to “$PRP:”SW-Current Sheet” (the “Value/Text Expression”)

Anyone have any ideas to fix/work-around this? ( I know I can edit the Sheet Format for each consecutive sheet and make it stick to what I desire the "Sheet No" to be BUT was just wondering if there was another way. )

Thanks

Edit:

The --> $PRPSHEET:"Detail_Sheet_No"
SOLIDWORKS Professional 2020 SP5.0 - PTB-04.jpg
works fine and sticks to the “Value/Text Expression” upon saving and reopening

Re: Property Tab Builder & a Changeable/Selectable Value for Sheet Number Problem.

Posted: Mon Jul 12, 2021 7:07 am
by Roasted By John
@Conklin

Check out the attached macro, I don't know if it will answer your question, but I have used this for multiple sheets for many years, one of the best macros.

The other option this macro gives you is that you can have a cover sheet in the drawing file and not have it show up in the Page # of Page #.

You will need to adjust the dimensions within the macro to have the note places properly.

Re: Property Tab Builder & a Changeable/Selectable Value for Sheet Number Problem.

Posted: Thu Dec 02, 2021 12:05 pm
by Conklin
I have tried the macro "CustomSheetNumber.swp"
I simplified the macro a bit to better understand what it was doing…
Took away the filter bit, made it to do just one size drawing format/templet size, commented out the graphics and zoom all bit
I also made the position and the font size good for my templet.
Am calling it “CustomSheetNumber-BOB.swp” for now
CustomSheetNumber-BOB.swp
(63 KiB) Downloaded 61 times
Did this for it was not working right
For even prior to the simplification, it would work OK when I first Run it
BUT on a second run it would get hung up here
CustomSheetNumbers - WHERE IT GOES BAD.jpg
And then go to here
CustomSheetNumbers - AND IT JUMPS TO HERE.jpg
Run a third time it would get hung on sheet two
Run a fourth time and it would be OK again..
Not sure where or what needs to be changed BUT
It seems to hang or not delete a note with “SHT” in it sometimes and not hang or will delete the “SHT” note other times.
Note: I am testing it on a drawing with TWO sheets (Named “Sheet1” & “Sheet2”)
Just wondering where/how it goes BAD
thanks