Author Topic: manage/remove/strip XData  (Read 2579 times)

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
manage/remove/strip XData
« on: June 13, 2011, 03:15:34 PM »
Does anyone have anything for managing and removing XData/XRecords? I've got a bunch of linework from old microstation files that are full of xdata and are killing my drawing.
Normally I wouldn't ask and would figure it out on my own, but I really don't have the time or feel like reinventing the wheel.
« Last Edit: June 13, 2011, 03:19:48 PM by alanjt »
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: manage/remove/strip XData
« Reply #1 on: June 13, 2011, 03:21:29 PM »
This will remove all XData of a particular AppID, I'm sure you could weave a small sub around it  ;-)

Code: [Select]
(entmod (list (cons -1 entity) (list -3 (list appID))))
Or perhaps this from Gile:

http://www.theswamp.org/index.php?topic=36582.0

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: manage/remove/strip XData
« Reply #2 on: June 13, 2011, 03:29:03 PM »
This will remove all XData of a particular AppID, I'm sure you could weave a small sub around it  ;-)

Code: [Select]
(entmod (list (cons -1 entity) (list -3 (list appID))))
Or perhaps this from Gile:

http://www.theswamp.org/index.php?topic=36582.0
That's simple enough. Thanks.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: manage/remove/strip XData
« Reply #3 on: June 13, 2011, 05:51:13 PM »
haha ... now is when we need Cadaver to extol the virtues of not killing applications by stripping xdata
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: manage/remove/strip XData
« Reply #4 on: June 14, 2011, 04:44:16 AM »
haha ... now is when we need Cadaver to extol the virtues of not killing applications by stripping xdata

You may be getting your ogres muddled Keith :)

I've strenuously questioned the advisability of wholesale nuking of ALL xData.
The routine offered here restricts the selection to a specific appID, so is immune from my potential wrath.

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: manage/remove/strip XData
« Reply #5 on: June 14, 2011, 08:41:15 AM »
I'd normally agree with you, but since this is just a bunch of linework with QTO XData from Microstation and all I want is to be able to show the underground utilities, I don't see the problem in completely stripping the XData.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: manage/remove/strip XData
« Reply #6 on: June 15, 2011, 11:27:44 AM »
haha ... now is when we need Cadaver to extol the virtues of not killing applications by stripping xdata

You may be getting your ogres muddled Keith :)

I've strenuously questioned the advisability of wholesale nuking of ALL xData.
The routine offered here restricts the selection to a specific appID, so is immune from my potential wrath.



I don't really know what to say now ;-)
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie