Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Contributor
sbrennan85
Posts: 18
Registered: ‎01-15-2009
Message 1 of 5 (240 Views)

Need help, no LISP experience

240 Views, 4 Replies
05-02-2012 10:51 AM

Ok so I'm working on incorporating a bunch of blocks into a custom ribbon for my company.  We have the blocks, and I have them working perfect using macros.

 

However, this morning I came across how to rotate the block and attributes/text, but keep the text in a proper left-to-right reading direction. I was able to get a block working with this, but now I want to be able to mimic my current macro, but use the dynamic block rotation parameter rather than the traditional autocad rotate upon insertion. 

 

Has anyone done this before and can provide me with input, or better yet have the LSP file I can just use? hehe.

 

Thanks.

 

Oh, attached is a file with the block in it. In the long run, I have multiple blocks that I would like to work exactly the same as what I'm trying here.

*Expert Elite*
Kent1Cooper
Posts: 5,511
Registered: ‎09-13-2004
Message 2 of 5 (232 Views)

Re: Need help, no LISP experience

05-02-2012 11:37 AM in reply to: sbrennan85

[ I don't have a new-enough version to have dynamic Blocks, so I can't help you on this one.  But for future reference, to increase the chances of catching the attention of someone who can help with any given question, see:

 

http://catb.org/~esr/faqs/smart-questions.html

 

As it is, your Subject line could apply to a respectable percentage of all threads on this forum.  You'll be better off with Subject lines that convey something meaningful about the issue at hand. ]

Kent Cooper
*Expert Elite*
dbroad
Posts: 1,565
Registered: ‎08-16-2007
Message 3 of 5 (201 Views)

Re: Need help, no LISP experience

05-02-2012 06:21 PM in reply to: sbrennan85

If you are working with blocks, especially if you are working with dynamic blocks, you should be using palettes instead of the ribbon.  Individual palettes can be grouped and maintained easily.  The dynamic block properties can be managed at the tool without programming.

 

The ribbon is better for command tools.

Contributor
sbrennan85
Posts: 18
Registered: ‎01-15-2009
Message 4 of 5 (199 Views)

Re: Need help, no LISP experience

05-02-2012 06:35 PM in reply to: dbroad

Thanks.  I'll look into the tool palette solution.  What was really appealing to me and others in the company is the ability to select a command from the ribbon, have it insert a block, bypass scale or rotation or attributes, (depending on the purpose of the block), and once it's all done, the macro would automatically repeat the process with the same block. 

 

We're an electrical construction company with a fairly large customer base, and while we don't always engineer large jobs, we do some jobs for our customers that we engineer and document all the way through. Blocks/symbols like receptacles and lighting fixtures that are repetatively inserted work better in the macro of a command via the ribbon, but I haven't fully explored palettes.

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

Re: Need help, no LISP experience

05-03-2012 03:26 PM in reply to: sbrennan85

sbrennan85 wrote:

What was really appealing to me and others in the company is the ability to select a command from the ribbon, have it insert a block, bypass scale or rotation or attributes, (depending on the purpose of the block), and once it's all done, the macro would automatically repeat the process with the same block. 

Sounds like you need a Screen Menu to get the job done!

Forget the drag-and-drop pallets - no 2 stations will have the same blocks / block order,

unless you company does not observe "everyone to be on the same page".

 

A Screen Menu can be paged - allowing an infinite number of "buttons" to appear in the same area.

In the Screen Menu macro, not only can you insert the block, but you can add text as well.

A Screen Menu is one less click than a Pull-down (MENUBAR).

 

Here's an example for inserting a duplex with corresponding GFI text (* that repeats):

*^C^C-insert;v_110;nea;\;;\text;c;@;0.0;GFI;orthomode;0;move;l;;@;none;\

 

08elec00.gif

 

???

Scot-65
Dyslexia is a permanent physical disability that cannot be seen.
Introverts is proof that there is indeed intelligent life on this planet.
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 or visit the Installation and Licensing Forum to get help installing your software.