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

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
User avatar
Conklin
Posts: 50
Joined: Fri Mar 26, 2021 3:34 pm
Answers: 0
x 10
x 21

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

Unread post 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
User avatar
Roasted By John
Posts: 366
Joined: Mon Mar 08, 2021 3:21 pm
Answers: 1
Location: Lebanon PA USA
x 268
x 583
Contact:

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

Unread post 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.
Attachments
CustomSheetNumber.swp
(102.5 KiB) Downloaded 91 times
www.martinsroastapig.com
Pig Roast Your Way
User avatar
Conklin
Posts: 50
Joined: Fri Mar 26, 2021 3:34 pm
Answers: 0
x 10
x 21

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

Unread post 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 75 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
Post Reply