TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Lupo76 on November 12, 2019, 03:52:17 AM

Title: Vlisp don'y works in advance steel
Post by: Lupo76 on November 12, 2019, 03:52:17 AM
Hi,

this simple lisp does not work in AutoCAD Advance Steel.
Can you explain the reason, is there a way to restore vlisp?

Code: [Select]
(defun c:propogg (/ obj vlaobj)
  (vl-load-com)
  (setq obj (car (entsel)))
  (setq vlaobj (vlax-ename->vla-object obj))
  (vlax-dump-object vlaobj T)
)

thanks!
Title: Re: Vlisp don'y works in advance steel
Post by: PKENEWELL on November 12, 2019, 11:11:13 AM
Search the Autodesk Forums as I believe this has been a common problem: https://forums.autodesk.com/t5/advance-steel-forum/3dpolyfillet-lisp-in-advance-steel/td-p/7868229 (https://forums.autodesk.com/t5/advance-steel-forum/3dpolyfillet-lisp-in-advance-steel/td-p/7868229)

Check to see if any support paths were lost after the Advanced Steel install.
Title: Re: Vlisp don'y works in advance steel
Post by: Lupo76 on November 12, 2019, 12:56:54 PM
Hi,
lisp is very simple and is not a problem of search paths, at least I think.
I did some research but I didn't find anything useful on the autodesk site.

It seems that only simple lisp functions work, while vlisp functions that need (vl-load-com) don't work.

Some idea?

Title: Re: Vlisp don'y works in advance steel
Post by: Marc'Antonio Alessi on November 12, 2019, 04:02:10 PM
Hi,
lisp is very simple and is not a problem of search paths, at least I think.
I did some research but I didn't find anything useful on the autodesk site.

It seems that only simple lisp functions work, while vlisp functions that need (vl-load-com) don't work.

Some idea?
https://knowledge.autodesk.com/support/advance-steel/troubleshooting/caas/sfdcarticles/sfdcarticles/Advance-Steel-Documentation-about-LISP-for-Advance-Steel-product.html (https://knowledge.autodesk.com/support/advance-steel/troubleshooting/caas/sfdcarticles/sfdcarticles/Advance-Steel-Documentation-about-LISP-for-Advance-Steel-product.html)
Title: Re: Vlisp don'y works in advance steel
Post by: BIGAL on November 12, 2019, 08:14:36 PM
Sounds like the MAC version no VL, what does (entget (car (entsel))) do.
Title: Re: Vlisp don'y works in advance steel
Post by: Lupo76 on November 13, 2019, 06:07:32 AM
https://knowledge.autodesk.com/support/advance-steel/troubleshooting/caas/sfdcarticles/sfdcarticles/Advance-Steel-Documentation-about-LISP-for-Advance-Steel-product.html (https://knowledge.autodesk.com/support/advance-steel/troubleshooting/caas/sfdcarticles/sfdcarticles/Advance-Steel-Documentation-about-LISP-for-Advance-Steel-product.html)

So if I understand correctly, it's not an installation problem.
In other words, do you confirm that Advance Steel does not support VLISP?
This is very strange being an Autodesk product with AutoCAD Full engine.  :-o
Title: Re: Vlisp don'y works in advance steel
Post by: Marc'Antonio Alessi on November 13, 2019, 07:17:58 AM
https://knowledge.autodesk.com/support/advance-steel/troubleshooting/caas/sfdcarticles/sfdcarticles/Advance-Steel-Documentation-about-LISP-for-Advance-Steel-product.html (https://knowledge.autodesk.com/support/advance-steel/troubleshooting/caas/sfdcarticles/sfdcarticles/Advance-Steel-Documentation-about-LISP-for-Advance-Steel-product.html)

So if I understand correctly, it's not an installation problem.
In other words, do you confirm that Advance Steel does not support VLISP?
This is very strange being an Autodesk product with AutoCAD Full engine.  :o
Yes,
"There is no specific LISP documentation to be used for Advance Steel product. Also, the Advance Steel Visual Lisp is not supported anymore since AS 2014 version."  :(
Title: Re: Vlisp don'y works in advance steel
Post by: PKENEWELL on November 13, 2019, 11:03:22 AM
"There is no specific LISP documentation to be used for Advance Steel product. Also, the Advance Steel Visual Lisp is not supported anymore since AS 2014 version."  :(

Honestly - I read that same article and it left me somewhat confused: do they mean that ALL Visual LISP doesn't work, or that the specific Advanced steel API objects don't work? This was not the best witten support documentation.
Title: Re: Vlisp don'y works in advance steel
Post by: Marc'Antonio Alessi on November 13, 2019, 11:12:06 AM
"There is no specific LISP documentation to be used for Advance Steel product.Also, the Advance Steel Visual Lisp is not supported anymore since AS 2014 version."  :(

Honestly - I read that same article and it left me somewhat confused: do they mean that ALL Visual LISP doesn't work, or that the specific Advanced steel API objects don't work? This was not the best witten support documentation.
See: "We highly recommend you to use Advance Steel API (COM or .NET) and / or Dynamo for Advance Steel to develop applications or routines for Advance Steel product."
Title: Re: Vlisp don'y works in advance steel
Post by: dgorsman on November 13, 2019, 02:52:29 PM
Which would point to the page being API documentation.

What happens when you "run as AutoCAD"?  Still no VLISP?
Title: Re: Vlisp don'y works in advance steel
Post by: BIGAL on November 16, 2019, 12:23:19 AM
The Mac version runs as "Autocad" no VL. Big disappointment.

Back to me what does (entget (car (entsel))) retrieve.

Had a look at Dynamo but as its not in Autocad hard to tell looked straight forward not sure how you save the "macros" if that's what they are.