macro not working

macro not working

Joris.vd.Meulen
Collaborator Collaborator
459 Views
3 Replies
Message 1 of 4

macro not working

Joris.vd.Meulen
Collaborator
Collaborator

Hey Guys,

 

We recently installed 2016. And I can't get our menu-item to work like it did before.

 

What we have:

- custom menu item "bib"

- in our cui > menu > bib > there are several custom 'submenu's migrated from an earlier cui. 

- these submenu items have several items or commands as you might wanna call 'm.

- so far nothing failing.

 

What it used to do:

- trigger a library directory which is a popup window with a tiled showcase of several items (dwg blocks).

 

Now I get the popup, but all is blank.

 

The macro which each command in these submenu have (all differ obviously)

 

^C^C^P(cond ((null i004) (menucmd (setq i004 "I=004USER")) (princ)) (T (menucmd i004) (princ))) ^P$I=* 

 

I'm trying to figur out the point where things go wrong. Since I don't know that much from macro etc. It's a puzzle. Perhaps you can help me?

Autodesk's help guide is not that good (lack of examples etc). 

 

so

- is this macro 'up 2 date'? I know it's written in r13 era ... (yup, we go back a looong time). 

- T function is that a custom function or an autodesk one?

 

 

 

love python coding
0 Likes
460 Views
3 Replies
Replies (3)
Message 2 of 4

scot-65
Advisor
Advisor
Looks like your icon library did not make it over from the previous version.
I don't have enough experience with icon libraries to guide you. Perhaps
recheck the path (folder) to the icon library.

"T" is typically used to pass the last test inside a COND.
In other words, a default action if none of the previous tests passes.
It is good practice to have such a test inside the COND.

[Vertical] Example:
(cond
( (test1 is true) [execute within these parenthesis only, and skip the rest] )
( (test2 is true) [execute...] )
(T [execute...] )
);cond

For a simple IF statement, "T" is redundant to use as a test...
(if T
(do this)
(do that)
);if

"do that" will never execute...


???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 3 of 4

Joris.vd.Meulen
Collaborator
Collaborator

Hmm, okay, starts to make sense.

 

Is it correct if I say that the path you refer to is set in the Acad > options > files > support file search path? 

(because the location is added there, not anywhere else)

 

Or do I have to set this path somewhere else?

 

 

love python coding
0 Likes
Message 4 of 4

scot-65
Advisor
Advisor
I have no experience with icon libraries.
Perhaps look in the CUI?

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes