Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
For example, for drawings from "C:\myFolder\myProject" or "E:\myFolder\myProject" the function model.GetDescr().GetPath() retrieves only "\myFolder\myProject" and omits the drive letter or the root folder.
I would need the full path to differentiate if the file is from Local disk or Removable disk.
Solved! Go to Solution.
I haven't used Model.GetDescr in JLink, as far as I know.
For example, for drawings from "C:\myFolder\myProject" or "E:\myFolder\myProject" the function model.GetDescr().GetPath() retrieves only "\myFolder\myProject" and omits the drive letter or the root folder. I would need the full path to differentiate if the file is from Local disk or Removable disk.
Model.GetDescr returns a ModelDescriptor object. The method ModelDescriptor.GetDevice might give you the drive letter. You could try ModelDescriptor.GetFullname.
|+| M a r k |+|
I haven't used Model.GetDescr in JLink, as far as I know.
For example, for drawings from "C:\myFolder\myProject" or "E:\myFolder\myProject" the function model.GetDescr().GetPath() retrieves only "\myFolder\myProject" and omits the drive letter or the root folder. I would need the full path to differentiate if the file is from Local disk or Removable disk.
Model.GetDescr returns a ModelDescriptor object. The method ModelDescriptor.GetDevice might give you the drive letter. You could try ModelDescriptor.GetFullname.
|+| M a r k |+|
That is helpful, thank you!