Reply

How to set the options for SolidEdge from C#

[ Edited ]

Hi Jason and all,

I had a query since long time, not yet resolved. it is

 

1. I am exporting *.dft file to *.dxf file, where in i need to change sheet options from "Active sheet only" to "All sheets" . Here i came to know that there is no API to handle this thing, so i wrote my configuration file but the problem is I need to change the default CAD CONFIGURATION FILE (SEACAD.INI) location to point to my configuration file (which i wrote with required settings). How i can do this from C# coding.

 

 

2. While importing the *.IGS file, SolidEdge is not automatically recognising the actual file (i.e *.PAR or *.ASM) and so its asking me like open with which template. So i thought of using "OPENWITHTEMPLATE" but the problem is how can i find whether the given .IGS file is an *.ASM or *.PAR . (I opened the *.igs file in Text editor, i found that there are extensions like ".SLDPRT" or ".SLDASM" if that *.igs file is exported by SOLIDWORKS where as if that *.igs file is exported by SOLIDEDGE i didnt found any tags that can differentiate as PART OR ASSEMBLY File). So how i do this from C# coding. (or what are the tags that differentiate the IGS file as PART or ASSEMBLY). NoteI tried opening this *.IGS File which is exported from SOLIDEDGE in SOLIDWORKS, it is not asking me for the template but is opening automatically with the required template, which means there should be some tags different in both PART and ASSEMBLY - *.IGS files. can you tell me that tags please. )

 

 

3. Finally Exporting files to *.STP file,where in i need to change the TRANSLATE OPTIONS to "EXPORTAP214". how to do this in C#. Any help in this regard worth appreciated. Thanks in advance Venkata Ramesh V

 

Posted by: Venkata Ramesh Virodhula
Post date: 7/13/2011 11:18:39 PM

1 REPLY

RE: How to set the options for SolidEdge from C#

[ Edited ]

Hi,

 

I Found the Configuration file for STP Options. "STEP3D.ini" in program folder of SolidEdge. In that change "Export AP214 Format=off" to "Export AP214 Format=on". but the thing is i didnt find any browse option to set this file location. So i hope that SolidEdge had hard Coded this file location. so we cannot write the new configuration file for STP options and set that file location. So i hope only thing is to change STEP3D.INI file every time you want to change the STEP options. But if any sort program crash occurs then the options may not be restored, which we usually do after our program ends. So any other method available,so any other options availabel,plz revert..

 

 

Thanks

Venkata Ramesh V

 

Posted by: Venkata Ramesh Virodhula
Post date: 7/13/2011 11:25:10 PM