cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Layers in Preference files

JB99
1-Visitor

Layers in Preference files

I have been working with the preference files in order to have the linestyles and text styles set when a user opens Isodraw. I would like to set up layers also, but I do not see a section where that can be accomplished.

Has anyone created layers in the preference files? If so could you please share with me that portion of your ".PRF" file or point me in the correct direction where to look?

Thanks for any and all help.

Keith Howard

2 REPLIES 2
Dutch_Mn
12-Amethyst
(To:JB99)

I don't think you can add layer preferences to the .prf file (I maybe wrong)

The use of a template maybe the way to go or create them on the fly with a macro

You could adjust your pref automaticaly by using macro

See exemple.

Macro STD Properties

DEFINE name AS string
name = "Set All Properties ???"
MESSAGE name

# Attributes/Pens

App.window.pageY = 279.39
App.thickthin.upTo1 = 20
App.thickthin.upTo2 = 40
App.thickthin.useThickThin = false
App.shadow.shadowWidth = 1.02

# STD Pens
App.pens["Thick"].width = 0.61
App.pens["Thick"].switchPen = "Thick"

App.pens["Medium"].width = 0.36
App.pens["Medium"].switchPen = "Medium"

App.pens["Thin"].width = 0.18
App.pens["Thin"].switchPen = "Thin"

App.pens["Center line"].screenColor = "{RGB 0 0 0}"
App.pens["Center line"].width = 0.18
App.pens["Center line"].shadow = "Autom. Long"
App.pens["Center line"].switchPen = "Center line"


# Attributes/colors

App.colors["White"].kind = "RGB_color"
App.colors["Black"].kind = "RGB_color"
Add color "Blue"
App.colors["Blue"].kind = "RGB_color"
App.colors["Blue"].color.type = "rgbValues"
App.colors["Blue"].color.RGB = "{RGB 0 0 255}"

# New Pens

Add pen "Extra Thick"
App.pens["Extra Thick"].screenColor = "Black"
App.pens["Extra Thick"].width = 0.81
App.pens["Extra Thick"].style = "Solid"
App.pens["Extra Thick"].shadow = "$ISO_NOSHADOW"
App.pens["Extra Thick"].switchPen = "Extra Thick"
App.pens["Extra Thick"].color.type = "colorRef"
App.pens["Extra Thick"].color.color = "Black"
App.pens["Extra Thick"].color.tone = 1


# Attributes/Styles


App.linestyles["Solid"].startMark = 1
App.linestyles["Solid"].endMark = 1
App.linestyles["Solid"].type = 0
App.linestyles["Solid"].pattern[1] = 0

App.linestyles["Center line"].startMark = 1
App.linestyles["Center line"].endMark = 1
App.linestyles["Center line"].type = 1
App.linestyles["Center line"].minEndLength = 0
App.linestyles["Center line"].pattern[1] = 6.34
App.linestyles["Center line"].pattern[2] = 0.63
App.linestyles["Center line"].pattern[3] = 1.27
App.linestyles["Center line"].pattern[4] = 0.63
App.linestyles["Center line"].pattern[5] = 0
App.linestyles["Center line"].pattern[6] = 0


# Attributes/shadows

App.shadows["Autom. Long"].start = 3
App.shadows["Autom. Long"].end = 3
App.shadows["Autom. Long"].width = 1.18
App.shadows["Autom. Long"].color.type = "colorRef"
App.shadows["Autom. Long"].color.color = "White"
App.shadows["Autom. Long"].color.tone = 1

Text

App.txtFormats["Normal"].font = "Arial"
App.txtFormats["Normal"].leading = 12


# Grid

App.grid.showGrid = true
App.grid.constrain = true
App.grid.gridMagnet = true
App.grid.showDim = true
App.grid.elementMagnet = true
App.grid.radius = 5
App.showCursorInfo = false
App.magnetFlags = 7


# Drawing Format

App.window.pageX = 21.58
App.window.pageY = 27.94
App.window.curSystem = "in"
App.window.dimScale = 1


# CGM Export

App.cgm.cgmlinecap = 2
App.cgm.cgmlinejoin = 2
App.cgm.cgmlinecap = 1
App.cgm.cgmlinejoin = 1
App.cgm.profile = 18
App.cgm.textType = 2
App.cgm.styleHandling = 3
App.cgm.version = 4

End Macro

Announcements

Top Tags