Guest Posted February 5, 2002 Share Posted February 5, 2002 Scripting is something I can't help with. Try posting this in the VectorScript section of the message board. You can also submit VS inquiries to vs_support@nemetschek.net. There is also a VectorScript mailing list you can post and receive messages on. Subsciption information in regards to that can be found on the Support link from the Nemetschek main page. Quote Link to comment
Guest Posted February 6, 2002 Share Posted February 6, 2002 SetClVectorFill(className, hatchName: STRING):BOOLEAN; Quote Link to comment
urimevs Posted February 6, 2002 Author Share Posted February 6, 2002 Does anyone know of a practical way to assign an (already existing) associative hatch to a class.Any help would be greatly appreciated... urimevs Quote Link to comment
Guest Posted February 6, 2002 Share Posted February 6, 2002 Go to the classes dialog box (Organize>Classes...) and select the class you wish to apply the Associated hatch to. Click on the Edit button. This will bring up an edit class dialog box. If you wish the hatch to be used at creation, check mark the appropriate box. THen from the Fill drop down box select Hatch. From the Hatches drop down box right below that, select the hatch you wish to use. Please note the hatch has to exist in the drawings' resources for it to show in the list. If the hatch is not listed in the drawings' resource list, simply import it from it's location for use in the current drawing. When you have edited all parameters of the class click on the OK button. This will save the class information. You can now exit the classes dialog box. From this point forward, the objects that are created in that class will have the associative hatch available thru the class fill option in the attributes palette or, if you selected it to be used at creation, the hatch will be applied to all objects created in that class. Quote Link to comment
urimevs Posted February 6, 2002 Author Share Posted February 6, 2002 Thanks Katie I did not express myself correctly. I would like to assign the associative hatch to a class via a script.i found a way to do this via saving a strip-down version of the document (deleting everything but the hatches) as vectorscript.The process is cumbersome and only works for one document at a time.Maybe you can help with a better solution? Thanksurimevs Quote Link to comment
urimevs Posted February 7, 2002 Author Share Posted February 7, 2002 Can you give me an example. I have tried the procedure but I can't make it work (vectorscript error)what should I do with the boolean variable? Thanks urimevs Quote Link to comment
Guest Posted February 7, 2002 Share Posted February 7, 2002 code: Procedure foo; BEGIN IF SetClVectorFill('None', 'Default Hatch') THEN Message('Success') ELSE Message('Failed!'); END; Run(foo); Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.