AutoCAD Architecture Customization
Welcome to Autodesk’s AutoCAD Architecture Customization Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Batt Insulation Lisp Problem.

8 REPLIES 8
Reply
Message 1 of 9
Anonymous
340 Views, 8 Replies

Batt Insulation Lisp Problem.

I have found a lisp routine in customer files and it works great. My
problem is that it sets osmode to 0. Is there a way to set it back to the
way I had it? I not sure how to make this work in the lisp routine file.
I've tried a few different things but I can't figure it out. I'll post the
file I use in CF, if someone wouldn't mind taking a look at it. Or does
anyone have a lisp routine that does what I want!

Thanks,
Clint P. Ryan
Alexander + Kienast
E: clintr@aktexas.com
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: Anonymous

The customization group is the best place for these types of questins but
the answer is yes ...

Add to the beginning...

(setq OSM(getvar "osmode"))

At the end....

(setvar "osmode" OSM)
Message 3 of 9
Anonymous
in reply to: Anonymous

Oh I also get the following error, it doesn't seem to create a problem for
me, at least I don't see one. Except the osnap problem.

Command: batt
Enter start point (Left to Right)
Enter end point.
Enter insulation thickness. <3.5">
; error: no function definition: DGTR

--
Clint P. Ryan
Alexander + Kienast
E: clintr@aktexas.com
"Clint P. Ryan" wrote in message
news:558057396A48572A59A9ACA8B2AE499D@in.WebX.maYIadrTaRb...
> I have found a lisp routine in customer files and it works great. My
> problem is that it sets osmode to 0. Is there a way to set it back to the
> way I had it? I not sure how to make this work in the lisp routine file.
> I've tried a few different things but I can't figure it out. I'll post
the
> file I use in CF, if someone wouldn't mind taking a look at it. Or does
> anyone have a lisp routine that does what I want!
>
> Thanks,
> Clint P. Ryan
> Alexander + Kienast
> E: clintr@aktexas.com
>
>
Message 4 of 9
Anonymous
in reply to: Anonymous

Before the LISP routine sets OSMODE to 0, store the current value in a variable, preferably a local one, then restore it at the end, after the insulation is drawn.

(setq curosmo (getvar "OSMODE")) ; Store current value.

(setvar "OSMODE" curosmo) ; Reset initial value.

If you want to be really clever, you would have an error trapping routine that would be able to restore the values should the routine crash before the value is reset, but that is one area (of many) that I have not mastered.

--

David Koch
Member of the Autodesk Discussion Forum Moderator Program
Message 5 of 9
Anonymous
in reply to: Anonymous

Clint,
As Chip said in the ADT newsgroup the best place to get support for these
types of question is from the customization group.

The dgtr is an added routine that CJ has called separately in another
program, it essentially changes degrees to radians. Please check customer
files for a modified version of CJ's routine.

-Beau


"Clint P. Ryan" wrote in message
news:6DDC782F3137F0D01BBD899DD01285AA@in.WebX.maYIadrTaRb...
> Oh I also get the following error, it doesn't seem to create a problem for
> me, at least I don't see one. Except the osnap problem.
>
> Command: batt
> Enter start point (Left to Right)
> Enter end point.
> Enter insulation thickness. <3.5">
> ; error: no function definition: DGTR
>
> --
> Clint P. Ryan
> Alexander + Kienast
> E: clintr@aktexas.com
> "Clint P. Ryan" wrote in message
> news:558057396A48572A59A9ACA8B2AE499D@in.WebX.maYIadrTaRb...
> > I have found a lisp routine in customer files and it works great. My
> > problem is that it sets osmode to 0. Is there a way to set it back to
the
> > way I had it? I not sure how to make this work in the lisp routine
file.
> > I've tried a few different things but I can't figure it out. I'll post
> the
> > file I use in CF, if someone wouldn't mind taking a look at it. Or does
> > anyone have a lisp routine that does what I want!
> >
> > Thanks,
> > Clint P. Ryan
> > Alexander + Kienast
> > E: clintr@aktexas.com
> >
> >
>
>
Message 6 of 9
Anonymous
in reply to: Anonymous

Clint,
Don't you have ADTcadPac? There is a routine to do batt insulation for
walls and an undocumented command.

Type BATTINSUL and select the points.

Let me know if you have any questions.


--
Rob Starz
| president / dreamer | director
--------------------------------------------------
| Stardsign cad solutions | Autodrop , llc
| 352.263.3786 | www.autodrop.net

| AEC Designer / Consultant / Developer
| Autodesk Architectural Desktop:
Tools: www.stardsign.com
Tech Support: www.stardsign.com/support.htm
Bring the power of i-drop into AutoCAD with i-dock
(www.stardsign.com/idock.htm)
Message 7 of 9
Anonymous
in reply to: Anonymous

RTFM?? 😉

--
Regards,
---------------
Reid M. Addis
Architectural Applications Specialist
Granary Associates
411 North 20th Street
Philadelphia, PA 19130
Ph. 215-665-7056
email: addis@granaryassoc.com
"Rob Starz" wrote in message
news:27DA8C67943475D12E899A3864889FDA@in.WebX.maYIadrTaRb...
> Clint,
> Don't you have ADTcadPac? There is a routine to do batt insulation for
> walls and an undocumented command.
>
> Type BATTINSUL and select the points.
>
> Let me know if you have any questions.
>
>
> --
> Rob Starz
> | president / dreamer | director
> --------------------------------------------------
> | Stardsign cad solutions | Autodrop , llc
> | 352.263.3786 | www.autodrop.net
>
> | AEC Designer / Consultant / Developer
> | Autodesk Architectural Desktop:
> Tools: www.stardsign.com
> Tech Support: www.stardsign.com/support.htm
> Bring the power of i-drop into AutoCAD with i-dock
> (www.stardsign.com/idock.htm)
>
>
Message 8 of 9
Anonymous
in reply to: Anonymous

What does that mean? I have an idea...before you answer. what does the
last line of Clint's post say?????? think about it.


--
Rob Starz
| president / dreamer | director
--------------------------------------------------
| Stardsign cad solutions | Autodrop , llc
| 352.263.3786 | www.autodrop.net

| AEC Designer / Consultant / Developer
| Autodesk Architectural Desktop:
Tools: www.stardsign.com
Tech Support: www.stardsign.com/support.htm
Bring the power of i-drop into AutoCAD with i-dock
(www.stardsign.com/idock.htm)
Message 9 of 9
Anonymous
in reply to: Anonymous

Thanks for updated file, that works perfect, Thanks!

--
Clint P. Ryan
Alexander + Kienast
E: clintr@aktexas.com
"Beau Turner" wrote in message
news:3EF586C362E38C5134B86AAC85C41A88@in.WebX.maYIadrTaRb...
> Clint,
> As Chip said in the ADT newsgroup the best place to get support for these
> types of question is from the customization group.
>
> The dgtr is an added routine that CJ has called separately in another
> program, it essentially changes degrees to radians. Please check customer
> files for a modified version of CJ's routine.
>
> -Beau
>
>
> "Clint P. Ryan" wrote in message
> news:6DDC782F3137F0D01BBD899DD01285AA@in.WebX.maYIadrTaRb...
> > Oh I also get the following error, it doesn't seem to create a problem
for
> > me, at least I don't see one. Except the osnap problem.
> >
> > Command: batt
> > Enter start point (Left to Right)
> > Enter end point.
> > Enter insulation thickness. <3.5">
> > ; error: no function definition: DGTR
> >
> > --
> > Clint P. Ryan
> > Alexander + Kienast
> > E: clintr@aktexas.com
> > "Clint P. Ryan" wrote in message
> > news:558057396A48572A59A9ACA8B2AE499D@in.WebX.maYIadrTaRb...
> > > I have found a lisp routine in customer files and it works great. My
> > > problem is that it sets osmode to 0. Is there a way to set it back to
> the
> > > way I had it? I not sure how to make this work in the lisp routine
> file.
> > > I've tried a few different things but I can't figure it out. I'll
post
> > the
> > > file I use in CF, if someone wouldn't mind taking a look at it. Or
does
> > > anyone have a lisp routine that does what I want!
> > >
> > > Thanks,
> > > Clint P. Ryan
> > > Alexander + Kienast
> > > E: clintr@aktexas.com
> > >
> > >
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost