programs for descriptive data in XData

programs for descriptive data in XData

АлексЮстасу
Advisor Advisor
4,720 Views
39 Replies
Message 1 of 40

programs for descriptive data in XData

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

Hi all,

 

I want to collect free programs for descriptive data in XData to create the minimum required command set for users. With refinement, addition for their convenient and effective use.
As a result, I want to make a set of commands set to all users for convenient work with XData.

 

I suggest that you place here such your and other people's free programs, created a long time ago or recently, etc. - all for XData.
It would be good to indicate their authors when and where they were published, and for what they are intended.

When enough programs are collected, can take the best ideas from them.

 

For example:
- listxd.lsp - view Xdata content,
- xd.lsp - also viewing Xdata content from gile,
- modif_xdata.lsp - editing of Xdata content.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
4,721 Views
39 Replies
Replies (39)
Message 2 of 40

braudpat
Mentor
Mentor

Hello @АлексЮстасу 

 

Great Idea ! ... I have some LSP routines related to XDATAs ...

 

First the beautiful "COPY_XD" from Gilles (gile) ! ... Thanks to our Lisp/VLisp/Dotnet/etc French Master !!

 

The Health, Bye, Patrice

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 3 of 40

braudpat
Mentor
Mentor

Hello @АлексЮстасу 

 

An other routine "XDA" from Gilles (gile) !

 

"XDA" is a better / different version of XD where result is into a Dialog Box ...

 

So you can easily copy / paste the Info but you can't EDIT it !

 

The Health, Bye, Patrice

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 4 of 40

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

@braudpat wrote:

Hello @АлексЮстасу 

An other routine "XDA" from Gilles (gile) !

"XDA" is a better / different version of XD where result is into a Dialog Box ...

So you can easily copy / paste the Info but you can't EDIT it !


XD.lsp was created (gile) after XDA.lsp?
XD is better because the user is not given the hope that can edit. That it's just viewing. Saving effort!
XDA is better because can copy data.
How would these advantage be combine?  🙂

 

In listxd.lsp, I like that after viewing the command remains active. When working with XData is constant, more often you need to view several objects at once. So, too, can save effort and time.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 5 of 40

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

@braudpat wrote:

... "COPY_XD" from Gilles (gile) ! ... Thanks to our Lisp/VLisp/Dotnet/etc French Master !!


Yes, I have already seen in the forums that (gile) has created many useful programs!

 

There are more CopyXdata.lsp. But I don't know who the author is.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 6 of 40

CADaSchtroumpf
Advisor
Advisor

A test with a dynamic function to list in hover mode the Xdata data it contains ...

The degree mode of zoom can make the application ineffective: use the wheel to get closer .

 

0 Likes
Message 7 of 40

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

Thank you, @CADaSchtroumpf!
But now:

Command: DYN_READ_XDATA
Command "draworder" : error: bad argument type: stringp nil

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 8 of 40

marko_ribar
Advisor
Advisor

I've repaired routine... HTH.,M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 9 of 40

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

Thank you!
CADaSchtroumpf created a similar routine, but this, apparently, is a new version.
Previously:
1. some XData are not displayed,
2. sometimes empty gray rectangles are created,
3. it is better that the font size does not depend on the zoom,
4. sometimes text fields appear as appname,
5. perhaps it is better to read if all the inscriptions are in the same color,
6. it is better, probably, to insert MText on the left mouse button, and not on Esc.
I understand that CADaSchtroumpf did ToolTips (I don't know what the right name is) about XData. Probably an analogue of these:

XD_ToolTips.png
And it already seems to me that from this idea you can make two routines - ToolTips and unloading inscriptions at once to many (selected) objects.
But we better wait for the author.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 10 of 40

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

A set of routines could be useful for the relationship of labels (inscriptions) with XData:
1. such ToolTips - quick view, insert,
2. creating labels from the specified XData fields for the selected objects,
3. loading the content of the inscriptions into the specified field XData of selected objects,
4. updating the labels contents by the value in the XData field - almost 2.,
5. updating the values in the XData field by the content of the labels (inscriptions) - almost 3.,
6. creates a link between the labels (inscriptions) and the XData field, which stores font parameters, etc., as well as the position of the labels relative to the object. To restore labels, restore labels position and settings after editing objects. To quickly turn labels on/off. Etc.

 


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

Object-modeling _ odclass-odedit.com _ Help

Message 11 of 40

marko_ribar
Advisor
Advisor

Not sure if I am correct, but I widened last lisp... I haven't worked with XDATA too much, so you may find this topic also useful :

https://www.cadtutor.net/forum/topic/69261-store-a-list-in-xdata/?do=findComment&comment=582564 

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 12 of 40

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

Ok.
But we better wait for the author, CADaSchtroumpf?..

 

I found a lot, dozens of routines for XData.
But I did not find the very first's of the main ones:
1. creating Application description with a user-friendly interface (only available XDATA from Express),
2. adding the specified Application to all selected objects at once with the same values for those objects.

 

More precisely, I found for 1. good routine (gile) - XdataEditor, but on .NET and for versions until 2012. https://cadxp.com/topic/30186-modifi...comment-163459.
That means there's actually nothing.
Task 2. can try to solve on the basis of a good routine also from (gile) xdedit.lsp - https://cadxp.com/topic/30186-modifier-des-xdata/?do=findComment&comment=163440

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 13 of 40

marko_ribar
Advisor
Advisor

Thank for the links, @АлексЮстасу 

 

I don't know what monitor do you use, but I needed bigger MTEXTs, so I changed on both places this :

(/ (getvar "VIEWSIZE") 75.0)...

Also, I've changed this line :

" . "

To this :

(if (atom (cdr x)) " . " " ")

 

Those are my latest revisions... I suggest that you use them too...

Regards, bye...

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 14 of 40

Anonymous
Not applicable

Space Tag is a Facility Management tool I wrote using Registered appids and Xdata in conjunction with a database. Space Tag should open with a short instructional view. It will currently only register "Space Tag". It will also delete registered apps, add, and edit Space Tag Xdata at user's discretion. I recall that the exiting xdata/add xdata Edit Boxes at the bottom of the dialog box did not automatically refresh--so be aware of this bug.

Space Tag reads list/lines from the *.txt files and populates pulldowns. I don’t recall if it exports Xdata lists in kind.

 

See Acad Space Tag Lisp Overview video (12 minutes) for more details: https://youtu.be/5NDooSGkh_c

Video/Audio are not sync'd. Sorry. I'll be working on sync'ing them in the mean time.

 

Hope you find this useful...it is somewhat dated.

0 Likes
Message 15 of 40

Anonymous
Not applicable

Here's the better video link: https://youtu.be/5pGiG9yNCEk
The below video link is no longer available but I could not figure out how to edit the post it is in.

0 Likes
Message 16 of 40

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

Thank you!

 

I want to put together a collection of XData routines for all users.
I.e. we need routines with the most common capabilities.
For any type of AutoCAD primitives, for XData with any structure, etc.
And routines that perform the most basic actions: creating/editing Applications descriptions, adding to objects, removing, defining values/editing/viewing values, etc., uploading to txt, csv, tables, etc.

 

And I also have a problem - I do not understand English speech.  😞

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 17 of 40

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

@braudpat wrote:

..."COPY_XD"...


This routine (others too) does not add XData to Civil objects (Cogo Point, Surface, etc.) and other vertical application objects.
I read that this restriction may be due to function (entmod)...

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 18 of 40

CADaSchtroumpf
Advisor
Advisor

In resumption of discussion:
Marko pointed out the lack of reading of certain codes; I had only put the most useds.
This was therefore added and I thank him for it.
I noted (rem ";") line 32 and 33 because in the end they are useless, at least they do not have the desired effect.
Towards the end I also rem line 88 to add 89.
The last two lines position the insertion of the information text as desired.
In 88 it is the text following the cursor,
in 89 it is a fixed position (top-left) in the graphic screen.
You can comment one or either BUT not both ...

The latter seems more judicious to me because we will be able to see all the information (unless there is a lot of it, we could consider a multi-line text placed in columns, but I have not found how to set this up)

A particularity: you can also have information on the objects of a file inserted in XRef

Finally a note for Alexander:
This function is intended to only read the information (like XDlist) but we can easily read the information without relaunching the XDlist command to obtain them, we just have to hover / park on an object with the selection cursor, to quit the command? all actions on the mouse (apart from moving and zooming), or all actions on the keyboard: EXCEPT 'Esc'; it is the only touch not trackable with (grread) which makes an abrupt interruption of the program and we end up with a written text.
This cannot be managed, I do not recommend using the 'Esc' key with this program ...

 

0 Likes
Message 19 of 40

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

Hi, Bruno,

 

Now the Apps show looks like this (the cursor at the blue rectangle):

dyn_read_xdata.png

The content of Apps of any objects is not near the object/cursor, but always to the left at the top of the screen in one place.

 

How can I change Background Color?
I would make it a little lighter - 224,224,224 or the like.

 

Attached dwg with Apps that are not displayed.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 20 of 40

CADaSchtroumpf
Advisor
Advisor

Another forgetfulness of complex entities

The new corrected file

For Background Color? see the line 22, the background have the value -1