Need To Change One Project From CTB to STB

Need To Change One Project From CTB to STB

omorah
Collaborator Collaborator
4,859 Views
49 Replies
Message 1 of 50

Need To Change One Project From CTB to STB

omorah
Collaborator
Collaborator

Working on an existing CTB project to STB.

Thought it will be easy to Google or find here.

 

I have a project currently in CTB ( my office ), but need to change it to STB from our client's office's standards. Don't know why I cannot find info on this. I've typed different formats already. All am finding is how to convert CTB to STB.

 

The drawing got started in CTB and have gone far enough now. I keep finding how to convert the project from CTB to STB. My need is on how to relate the CTB line weights. Would I need to convert the whole project settings or, live as CTB but use the CONVERTSTYLE only?

 

Cheers

0 Likes
Accepted solutions (4)
4,860 Views
49 Replies
Replies (49)
Message 41 of 50

cadffm
Consultant
Consultant

Hi,

when we changes the lineweights, Red is now 0.13, but 0.05 in the past

But hey, for me personally this is completely irrelevant, I just wanted to point out in case this is a mistake.

 - didn't check other values -

 

And another point, same direction:

We want to print "colors"

1-7 to color7 [BLACK],

249 (255) MASK

250-254 COLOR nn% SCREEN

 

But all other Layers should use COLOR, or?  Quote: ("Yes. all our office are 100% color by layer, with the exception of about six colors")

(t ; else
(command "_.Layer" "_PS" "Color" (vla-get-Name l) "")
(vla-put-lineweight l 25)
)

 

 

 

 

Sebastian

0 Likes
Message 42 of 50

paullimapa
Mentor
Mentor

when I run my code I'm getting the correct lineweights...perhaps you need to set LWUNITS to 0 to display in inches instead of mm?

paullimapa_0-1738943569640.png

and my take on all other colors not defined should be "Black" to match and not deviate from the Client.stb standard

but I'll leave that to @omorah to decide.

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 43 of 50

cadffm
Consultant
Consultant

For LW % Lunits I will take a look later, thx

 

Colors: It does match the client.stb if you set them to plotstyle "Color" aswell

and TO said the only colors he change by ctb are 1-7,

thats means other colors are set to print "by object" and not "7".

Or?

-  -  -

And if convertpstyles uses an. stb based on office.ctb, I would run  purge- plotstyles at last.

(If it would be my project, I would use a stb with Normal and one of clints plotstyle only, this would create non-client-plotstyle, if I am right)

 

Whatever, it isn't our task, lol.

Sebastian

0 Likes
Message 44 of 50

paullimapa
Mentor
Mentor

I've added the "Color" Plot Style assignment option in the Of3C2S function & will let @omorah make the change as needed:

    (t             ; else
     (command "_.Layer" "_PS" "Black" (vla-get-Name l) "") ; all other colors will print black
;     (command "_.Layer" "_PS" "Color" (vla-get-Name l) "") ; all other colors will print in that color
     (vla-put-lineweight l 25)
    )

I also like your idea of doing a purge of all unused plot styles so I've included that in the code as part of step 4 when opening each dwg to reload the xrefs:

; Of4C2S function to reload all xrefs to restore all layer settings to original state & purge unused pstyles
; Examples:
; Command: (c:Of4C2S)
; Command: Of4C2S
(defun c:Of4C2S (/ VISRETAIN)
 (setq VISRETAIN (getvar"VISRETAIN")) ; save setting
 (setvar "VISRETAIN" 0) ; turn off retaining of layer property settings in the current drawing
 (command "_.XREF" "_R" "*") ; reload all xrefs to reflect their layer property settings
 (setvar "VISRETAIN" VISRETAIN) ; restore setting 
 (command "_.Purge" "_Plotstyles" "*" "_N")
 (princ) ; clean exit
) ; defun

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 45 of 50

omorah
Collaborator
Collaborator

Need to report on something I just discovered an hour ago at the office.

Got in, printed the instructions, took my time and did the convertions. Still, in the Layer Property Manager, I could not see some of the client's Plot Styles. I called in my co-worker to help see if I missed any instruction. I chose to go to his office, on his computer, all the Plot Styles showed. I was furious. Then I remembered a while back, I had issues with my Layer Property Manager. I decided to close it and upen the Classic Layer. BAM! All the Plot Styles showed. I was floored why I have not been able to really set the drawings up as I was instructed. The prints were not coming out as they should, though I supposed I did all as you'all asked me to. The issues happened both in AutoCAD 2024 and 2025, which has a common denominator of my customized files and settings. I can understand you'all fructrustruation. I was frustrated also. 

 

Something must be affecting my Layer Property Manager from my LISPs I suppose, since the Plot Styles showed when I did a Reset Settings to Default. I will troubleshoot the case at a later date. Using the Classic Layer is a pain, but at least it works.

 

Now I can continue from where I got lost on before, on not getting the results I needed ! 😁

0 Likes
Message 46 of 50

paullimapa
Mentor
Mentor

perhaps you missed my note #2 on my post:

paullimapa_0-1738966229947.png

paullimapa_1-1738966451159.png

Now the Plot Style column appears:

paullimapa_2-1738966528565.png

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 47 of 50

cadffm
Consultant
Consultant

" I could not see some of the client's Plot Styles"

And what plotstyles are listed 

- after the save&close&reopen step?

- after all steps?

 

or are you talking about the missing column as Paus mentioned? 

 

Sebastian

0 Likes
Message 48 of 50

omorah
Collaborator
Collaborator

Hello folks,

 

The PDF shows the print am getting with STB and CTB. My issue is with the STB.

In this converted project to STB, of 53 sheets, some (properties / Colors) in two sheets would not print correctly.

Attached is a sample of what I have. 

 

Why is the blue object not printing according to its Plot Style setting?

The Plot Preview looks okay, though I would expect the layer "Blue Heavy @28, to print heavier, than the layer Cyan Medium @16. 

Cheers

 

0 Likes
Message 49 of 50

paullimapa
Mentor
Mentor

Your BLUE HEAVY layer is showing an Override setting:

paullimapa_0-1751316749175.png

Right Mouse click on that Layer, then on the Cursor menu select Remove Viewport Overrides>Selected Layers>In All Viewports

paullimapa_1-1751316901327.png

Now that Layer will plot Heavier than the other:

paullimapa_2-1751316953483.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 50 of 50

cadffm
Consultant
Consultant

but don't ask WHY it is a problem.

It's a bug for years / since Overwrites exist (or does anyone know a documentation or logical explaination?)

 

Sebastian

0 Likes