Skip to content

CTB instead of STB #545

Answered by DomCR
thaiguer asked this question in Q&A
Jan 28, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @thaiguer,

Here is what I found:

https://help.autodesk.com/view/ACD/2025/ENU/?guid=GUID-3A68A211-1E6C-4A71-8503-62722A1155A6

The interesting part is:

When you convert a drawing, CONVERTPSTYLES sets the PSTYLEMODE system variable to the appropriate setting (0 = named, 1= color-dependent).

In ACadSharp the variable PSTYLEMODE is in the header, CadDocument.Header.PlotStyleMode, by default is set to 0, you only need to change it to 1.

I'll open a PR to add an enum to make it easier.

Hope this helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thaiguer
Comment options

Answer selected by thaiguer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants