Cancel
Showing results for 
Search instead for 
Did you mean: 

SE options Drawing View Style

Creator
Creator

Hallo to all

I need to programatically change the options--> Drawing View Style from ISO to my style custom;

for active stye and all style item under

 

 I have looking for in Spy for s.e., but without finding anything (in a global parameters, in DrawingViewStyles .... and so)

 

@Tushar @MartinBernhard

4 REPLIES 4

Re: SE options Drawing View Style

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hi,

It is in DrawingViewStyles collection:

It must be set in each template. It is not a general option.

This would be an example (oDFT is the active Draft Docuemnt object):

oDFT.DrawingViewStyles.Active="Name"

 

 

Julian Guillo
Pixel Sistemas SL
Spain

Re: SE options Drawing View Style

Creator
Creator

DrawingViewStyle.jpg
spy.jpg

I wold change all the drawing view style mapping (Principal an Pict...., 2D Model....,Section views....)

Re: SE options Drawing View Style

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hi,

If you want to set up them separately then you have to look at the object "DraftFilePreferences" in DraftDocument and the property "DVSTyleNameFromTable". 

I didn't test this.

 

Example:

 

Dim oDFT as SolidEdgeDraft.DraftDocument = oSE.ActiveDocument

Dim dftPrefs as SolidEdgeDraft.DraftFilePreferences = oDFT.FilePreferences

 

dftPrefs.DVStyleNameFromTable(seDVStyleMapping_PrincipalAndPictorialViews)="Your Style name 1"

dftPrefs.DVStyleNameFromTable(seDVStyleMapping_2DmodelViews)="Your Style name 2"

...

 

Hope this helps,

Julian

Julian Guillo
Pixel Sistemas SL
Spain

Re: SE options Drawing View Style

Creator
Creator

@Julian
It can work!! That is correct.
Thanks!!!