Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. 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!