I have a lisp routine which returns a error message since my upgrade from AutoCad MEP 2008 to AutoCad MEP 2012. New to reading code and very eager to learn.
|
I have a lisp routine which returns a error message since my upgrade from AutoCad MEP 2008 to AutoCad MEP 2012. New to reading code and very eager to learn.
Perhaps if you post your code, we'd have a better chance of being able to help you.
[Edit] When you do (post your code), please be sure to use [CODE ] Tags
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
I made a attempt to attach the routine and it did not send. Company IT department has a filter block on uploads. I will try again once permission is granted. Must think this is a social site like facebook or something.
No need to upload the file, per-se... Open the .LSP in any text editor (i.e., Notepad, Notepad++), and copy the contents... Then paste them here in the body of a post (within code tags).
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Code:;;;CONNECTION POINT SYMBOL (Defun c:connect-pt (/ sf pt1 pt2 a la text) (if glbsf (setq sf glbsf) (setq sf (getreal "\nEnter scale factor: ")) ) (load "mmci-variable") (setvar "osmode" 1) (setvar "orthomode" 1) (setq pt1 (getpoint "\nPick end of duct at side where symbol is desired: " ) ) ;setq (setvar "osmode" 0) (setq pt2 (getpoint pt1 "\n Pick center of symbol location (toggle F8 if ortho snap is not desired): " ) a (ang_d (angle pt1 pt2)) la (getvar "clayer") text (tblsearch "layer" "_M_TEXT") ) ;setq (if (null text) (command "layer" "m" "_M_TEXT" "c" 7 "" "") ) ;if (setvar "cmdecho" 0) (command "layer" "s" "_M_TEXT" "" "line" pt1 pt2 "" "insert" "conpt.dwg" pt2 (/ sf 48.0) "" a "layer" "s" la "" ) ;command (load "prsnl-variable") (setvar "cmdecho" 1) (princ) ) ;defun
Last edited by Opie; 2013-05-31 at 04:07 PM. Reason: [code] tags added ~Opie
@td -
Please edit your post to use [CODE ] Tags... See the link provided in post #2 of this thread for more information.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Code:;;;CONNECTION POINT SYMBOL (Defun c:connect-pt (/ sf pt1 pt2 a la text) (if glbsf (setq sf glbsf) (setq sf (getreal "\nEnter scale factor: ")) ) (load "mmci-variable") (setvar "osmode" 1) (setvar "orthomode" 1) (setq pt1 (getpoint "\nPick end of duct at side where symbol is desired: " ) ) ;setq (setvar "osmode" 0) (setq pt2 (getpoint pt1 "\n Pick center of symbol location (toggle F8 if ortho snap is not desired): " ) a (ang_d (angle pt1 pt2)) la (getvar "clayer") text (tblsearch "layer" "_M_TEXT") ) ;setq (if (null text) (command "layer" "m" "_M_TEXT" "c" 7 "" "") ) ;if (setvar "cmdecho" 0) (command "layer" "s" "_M_TEXT" "" "line" pt1 pt2 "" "insert" "conpt.dwg" pt2 (/ sf 48.0) "" a "layer" "s" la "" ) ;command (load "prsnl-variable") (setvar "cmdecho" 1) (princ) ) ;defun
Last edited by Opie; 2013-06-18 at 09:31 PM. Reason: [CODE] tags added ~Opie
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Not familar with MEP, but enter&Code:(findfile "mmci-variable")at the command line. Did they return paths or nil? What is the error message from the routine?Code:(findfile "prsnl-variable")