Visual LISP, AutoLISP and General Customization

Reply
Contributor
AvoKuk
Posts: 12
Registered: ‎01-20-2013
Message 1 of 8 (433 Views)
Accepted Solution

Is it possible to create a plugin like this?

433 Views, 7 Replies
05-09-2013 08:32 AM

Hi guys, I hope this goes to the right discussion group!

 

I have added a screenshot in the attachment illustrating my idea.

 

Would it be possible to create a (preferably semi-transparent) previously saved (preferably editable) list inside the autocad which would be tied to a user-defined button on the toolbar?

 

I know there is notepad, however it is a bit uncomfortable to use. What possibilities are there for creating something like that?

 

Regards,

Avo

Valued Mentor
bgingerich
Posts: 276
Registered: ‎08-29-2011
Message 2 of 8 (423 Views)

Re: Is it possible to create a plugin like this?

05-09-2013 09:52 AM in reply to: AvoKuk

A list of....

 

Random pasted text?

Text from the current drawing?

A way to display/hide objects?

─────────────────────────────────────────────────────────────────────────────────────────────
Brandon Gingerich
Contributor
AvoKuk
Posts: 12
Registered: ‎01-20-2013
Message 3 of 8 (401 Views)

Re: Is it possible to create a plugin like this?

05-09-2013 01:12 PM in reply to: bgingerich

The idea was to create a checklist for checking the layout before printing, ideally make a tick behind something which you have checked.

It would be ideal if this text is editable and also saved, if you press the button, text opens. Nothing more.

My main question was about the appearance of this list, I am not sure, if it is possible to tie a custom design, or have something in autocad which would roughly have the same look.

Contributor
AvoKuk
Posts: 12
Registered: ‎01-20-2013
Message 4 of 8 (335 Views)

Re: Is it possible to create a plugin like this?

05-13-2013 07:14 AM in reply to: AvoKuk

If anyone has any opinions or recommendations, then your thoughts are more than welcome :smileyhappy:

 

Thanks!

*Expert Elite*
scot-65
Posts: 2,122
Registered: ‎12-11-2003
Message 5 of 8 (309 Views)

Re: Is it possible to create a plugin like this?

05-13-2013 03:34 PM in reply to: AvoKuk

AvoKuk wrote:

If anyone has any opinions or recommendations, then your thoughts are more than welcome :smileyhappy:

 

Thanks!


What comes to mind as a suggestion is to create a DCL dialog with the check boxes.

To store/retrieve the information in the drawing, use VLAX-LDATA-PUT / VLAX-LDATA-GET.

These are called dictionary declarations. The list you will be storing is added to the file itself

and not be an external, separate file. The space you will occupy inside a DWG file will be

minimal (to the point where a single line definition will occupy more space).

 

If you need help in creating a simple dialog, more than one of us in this group will be able to help.

 

Here's a quick example from my library (it is a screen capture from a much larger dialog):

 

ChkBoxExample01.gif

 

There can be additional "bells-and-whistles" added to this program where the dictionary

items are cleared when a different DWG file name is detected to that which is stored...

 

scot-65

 

Scot-65
Dyslexia is a permanent physical disability that cannot be seen.
Contributor
AvoKuk
Posts: 12
Registered: ‎01-20-2013
Message 6 of 8 (272 Views)

Re: Is it possible to create a plugin like this?

05-14-2013 07:28 AM in reply to: AvoKuk

This was very helpful. Thank you, I have to dig into this a bit :smileyhappy:

*Expert Elite*
scot-65
Posts: 2,122
Registered: ‎12-11-2003
Message 7 of 8 (249 Views)

Re: Is it possible to create a plugin like this?

05-14-2013 04:03 PM in reply to: AvoKuk

AvoKuk wrote:

This was very helpful. Thank you, I have to dig into this a bit :smileyhappy:


Editing a custom list will be a little tricky, but not impossible.

I have not created such an exercise yet.

A second dialog box will be required to add and edit lines (list_box, edit_box, and a few buttons).

 

:row {key="Row101";

 :toggle {key="Tog101";}

 :text_part {key="Tex101";}

}

 

A 2-dimensional list will work - list of off/on's and list of text lines.

 

Scot-65
Dyslexia is a permanent physical disability that cannot be seen.
Contributor
AvoKuk
Posts: 12
Registered: ‎01-20-2013
Message 8 of 8 (200 Views)

Re: Is it possible to create a plugin like this?

05-19-2013 02:33 PM in reply to: scot-65

Great to see that there is a lot of in-depth competence in this forum :smileyhappy:

 

As I can see, it is possible to create smth. like I had envisioned. I just have to think now, how should I go about creating this.... :smileyhappy:

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community