Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLNames activated or not? How to know.

Status
Not open for further replies.

AlvaroPers

Mechanical
Nov 29, 2020
30
Is it a way to know through code if DLName is activated?
I don't see such a method under the "DLNameSettingAtt".

 
Replies continue below

Recommended for you

After a little research in this topic, I found that although you can grab the code using the damping function in the option dialog box, it is not possible to know if the current CATIA session is working with DLNames or folder as current.
If anyone has an idea about this, please share it.

Thx.
 
Thank you for the replay.

I understand you point, I'm able to read the file, in this case I can read the "DocEnv.CATSettings"
Then, I can decoded using "Unicode" for example. But then how do I proceed?

For example:

Dim bteRead() As Byte
bteRead = File.ReadAllBytes("D:\_V5R21\CATReferenceSettingPath\DocEnv.CATSettings")


Private Function UnicodeBytesToString(bytes() As Byte) As String
Return System.Text.Encoding.Unicode.GetString(bytes)
End Function


Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor