TheSwamp

Code Red => .NET => Topic started by: midko on April 14, 2019, 08:59:06 AM

Title: Xref renaming, no repathing
Post by: midko on April 14, 2019, 08:59:06 AM
I want to make a command that will fix the names of all xrefs in the file.
example:
xrefs in the file:
name - path
"X1" - C:/view1.dwg
"X2" - C:/view2.dwg
"X3" - C:/view3.dwg

has to change to:

"view1" - C:/view1.dwg
"view2" - C:/view2.dwg
"view3" - C:/view3.dwg

I would like to be able to do that in accoreconsole and this means I would have to use .net c#, netload it and use it in accoreconsole. (cannot use AutoLISP as far as I understand).
I am not much of a .net guy and would be happy if somebody at least jump-starts me regarding this task.

Title: Re: Xref renaming, no repathing
Post by: gile on April 14, 2019, 11:07:52 AM
Hi,

As you use a script in the Core Console you can use LISP expressions the same way you'd do it at the command line.