Solid Edge Options - Draft

 

Hi guys!

When you open a draft file, you can set to Solid Edge Options panel (options for active document):

- Edge Display: Visible edge style, Tangent edge style, Hidden edge style, ecc....

- Dimension style: style for each type of dimension...

 

How can I know this information by API?

 

Posted by: Luca Bianchini
Post date: 7/5/2010 12:18:38 AM

1 REPLY

RE: Solid Edge Options - Draft

 

I haven't looked through all of the results but you may try the GetGlobalParameter() method.  See example below.using System;using System.Reflection;using System.Runtime.InteropServices;namespace SETest{ class Program { static void Main(string[] args) { Type t = typeof(SolidEdgeFramework.ApplicationGlobalConstants); FieldInfo[] fields = t.GetFields(BindingFlags.Public | BindingFlags.Static); SolidEdgeFramework.Application application = (SolidEdgeFramework.Application)Marshal.GetActiveObject("SolidEdge.Application"); foreach (FieldInfo field in fields) { object value = null; application.GetGlobalParameter((SolidEdgeFramework.ApplicationGlobalConstants)field.GetRawConstantValue(), ref value); string sValue = value == null ? "" : value.ToString(); Console.WriteLine(String.Format("{0} = {1}", field.Name, sValue)); } } }}

 

Posted by: Jason Newell
Post date: 7/6/2010 3:58:53 PM