🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16011

[VB]How to set strokecolor to 'None'

#16011
From: Eelko_Heuvelmans
Date: Mon, 20 Oct 2003 13:20
23 lines
1486 bytes
I have searched the archive but could not find an answere that helped me. So i'll give it another try :)

When i create a frame is has a stroke, and color.
When i script i set the strokeweight to 0, but the color needs to be set to. but how.

If i do something like this i crashes:

Dim myColors as Indesign.colors
Dim myFrame as Indesign.TextFrame
Dim myDocument as Indesign.Document
'<...>
'My document is set to the active document
MyFrame = MyDocument.TextFrames.Item(1)
MyFrame.StrokeWeight = 0
MyFrame.StokeColor = myColors.Item("None") 'Won't work!
REM MyFrame.StokeColor = myColors.Item("[None]") 'ALSO Won't work!

So i can't acces that 'none' color. But i kind of have to,.. does any one know how to fix this in VB? Or has someone got some kind of workaround?

I'm using VB.Net on W2k with ID2.0.2

Thanx in advance!
Eelko Heuevelmans
Technical Details
Message-ID: <2ccde9e6.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,299569e6f48819d4,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-10-20 06:37:41 PST
From: Eelko_Heuvelmans@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: [VB]How to set strokecolor to 'None'
Message-ID: <2ccde9e6.-1@webx.la2eafNXanI>
Date: Mon, 20 Oct 2003 06:20:48 -0700
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit