Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE 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
Joined
Nov 29, 2020
Messages
30
Location
AR
Is it a way to know through code if DLName is activated?
I don't see such a method under the "DLNameSettingAtt".

 
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.
 
CATSettings have pretty straightforward binary format and can be parsed.
 
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

Back
Top