Lisp. Edit multiple XData at once

Lisp. Edit multiple XData at once

АлексЮстасу
Advisor Advisor
1,258 Views
6 Replies
Message 1 of 7

Lisp. Edit multiple XData at once

АлексЮстасу
Advisor
Advisor

Hi,

There is a great solution from gile (Gilles Chanteau) for viewing and editing XData - xdedit.lsp (attached). https://cadxp.com/topic/30186-modifier-des-xdata/?tab=comments#comment-163440
Can modify it a little:

1. Make it possible to specify not one object for editing, but several?
If there are different values in XData in its fields, can write *VARIES* in them - as in the Properties window?

Properties.png

But also give the opportunity to edit them.

2. If the object has more than one Application, first xdedit.lsp displays the Application choosing window.

xdedit_app.png

After specify the Application, a data edit window appears.

xdedit_edit.png
Can the Application choosing window be returned after editing the data?

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
1,259 Views
6 Replies
Replies (6)
Message 2 of 7

АлексЮстасу
Advisor
Advisor

... About 2.
Might it be easier to combine the Application choosing window and the data editing window into one?
After viewing-editing in one Application, how can immediately choose another without closing the edit window?

xdedit_app_edit_PARCEL.png

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 3 of 7

Terry_Eleiott
Explorer
Explorer

We have objects with xdata strings that are about 250 characters long which cannot be edited by the xdedit routine as it was originally written.  Is there an edit to the lisp routine that would allow for editing greater string lengths?

0 Likes
Message 4 of 7

АлексЮстасу
Advisor
Advisor

Hi, Terry,

 

Yes, XDTOOLS_VEDIT command allows you to edit strings longer than 255 characters. (But reminds of the length limitation, and suggests trimming such strings):

XDTOOLS_VEDIT.png
See the archive of the XDTOOLS command set attached here -

https://forums.autodesk.com/t5/community-classifieds/xdtools-an-open-project-for-creating-tools-for-...

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 5 of 7

АлексЮстасу
Advisor
Advisor

Hi, Terry,

Please forgive me!

 

I wrote my answer without making sure.  😞
XDTOOLS_VEDIT only saves strings longer than 255 characters, but it trims them to that limit when editing.
We couldn't do otherwise - until such a restriction is removed by Autodesk. Particularly because such strings will be truncated in XData when _AUDIT or _RECOVER.
(While this limitation is most likely an atavism, and may not actually exist).

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 6 of 7

CADaSchtroumpf
Advisor
Advisor

Hi АлексЮстасу

Xdata is for litght application and have limitation (16Kb by object)
See aricle of Kean Walmsley

For control this you can use XDROOM

For more efficient you must use Xrecord

 

0 Likes
Message 7 of 7

АлексЮстасу
Advisor
Advisor

Hi, Bruno,

 

Yes, we do checks for a 16K limit when writing data to XData.

 

Of course, XData is suitable for small, not too complex additional/descriptive data.
But many custom descriptive non-graphic data will not exceed these limits. And for many users, the capabilities of XData are sufficient.

 

I would only welcome and be willing to help if someone created a set of similar capabilities for users with Xrecord - the same as XDTOOLS.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes