<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Combine &amp;quot;sectionplane&amp;quot; and &amp;quot;sectionplanetoblock&amp;quot; using AutoLISP in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13009712#M9282</link>
    <description>&lt;P&gt;So ive got the section command working. The only issue now is the scale command. I believe something is going wrong when selecting my objects, and somehow i have the wrong object type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;QUICK COMMAND TO SCALE BLOCKS IN PAPERSPACE
(Defun c:PSCALE (/ setscale convscale newscale)

;GET TARGET OBJECT
(setq ss (ssget))

;GET TARGET SIZE, CONVERT TO A STRING, CONVERT TO A DECIMAL, THEN CONVERT TO SCALE	
(initget "1-16 3-32 1-8 3-16 1-4 3-8 1-2 3-4 2-2 3-2 6-2")
(setq setscale (getkword "[1-16,3-32,1-8,3-16,1-4,3-8,1-2,3-4,2-2,3-2,6-2]: &amp;lt;1-4&amp;gt;"))
(setq convscale (vl-string-subst "/" "-" setscale))
(setq newscale (distof convscale 2))

(print newscale)

;PUSH SCALE TO BLOCK
(setpropertyvalue ss "ScaleFactors/X" newscale)
(setpropertyvalue ss "ScaleFactors/Y" newscale)
(setpropertyvalue ss "ScaleFactors/Z" newscale)

)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 09 Sep 2024 16:26:34 GMT</pubDate>
    <dc:creator>christian_paulsen98V29</dc:creator>
    <dc:date>2024-09-09T16:26:34Z</dc:date>
    <item>
      <title>Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005503#M9275</link>
      <description>&lt;P&gt;I work at a company that uses both AutoCAD and Inventor. I am primarily an AutoCAD user, and so is most everyone else. There are a select few people who use Inventor. Eventually we would like to completely stop the use of Inventor completely, and have everyone working solely in AutoCAD. Just because the constant switching back and forth between programs, and importing and exporting all the time has created tons of issues in the past.&lt;BR /&gt;&lt;BR /&gt;All that being said, Inventor does have its pros. One of them being the simplicity it has when it comes to creating section views. I haven't found a easy way to create section views in AutoCAD yet and I've been using the program for years. Typically what i will do is isolate my objects, draw a section plane, create a block from that section plane, paste that block into my paperspace, then scale it to fit on my page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This workflow has worked for me in the past, but it is a bit tedious. I'm hoping to sort of condense it a bit into one command so that its not such a labor intensive thing to get a simple section view. That way when we eventually get rid of Inventor in my workplace, we have a tool for those users to use in AutoCAD.&lt;BR /&gt;&lt;BR /&gt;I will paste my current code below. As of right now it is not functioning. I cant even get the objects isolated. I only worked on this for about 10 minutes so its not great, but i know even if i worked on it all day it probably still wouldn't function the way i want it to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated. Id like to thank anyone who participates in advance. This forum is always such a great help.&lt;BR /&gt;&lt;BR /&gt;Issues I've ran into so far-&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When it prompts me to select object to isolate, i select it the first time and it doesn't work, but then i select it a second time and it works. I cannot figure out why.&lt;/LI&gt;&lt;LI&gt;Drawing the polyline first and then replacing it with the section plane. I thought this would be a good way to draw your line and have visible feedback, and then pass those coordinates to the section plane. Not sure if there is a better way to do this, maybe just skip the polyline completely and just draw from within the "sectionplane" command.&lt;/LI&gt;&lt;LI&gt;The "sectionplanetoblock" command is one of those commands where it pops up a little window, so i cant pass information the command line the same way that i do with other commands. I've had this issue before and cant remember how to fix it.&lt;/LI&gt;&lt;LI&gt;On the second command for scaling, when i try to create a list of options the special characters are creating issues. Id like to show the options using backslash, hyphen, and a quotation marks for the fractions " eg 1-1/2" "&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;QUICK COMMAND TO CREATE SECTION BLOCK OF AN OBJECT
(Defun c:QSECT (/ OS SS1)

;BEGIN UNDO AND ECHO AND SNAPS
(command "undo" "be")
(setvar "cmdecho" 0)
(setq OS (getvar "osmode"))
(setvar "osmode" 0)

;ISOLATE OBJECTS
(prompt "\nQUICK SECTION - Select objects to section ..")
(setq SS1 (ssget))
(command "isolateobjects" SS1)

;CREATE POLYLINE AS REFERENCE
;(prompt "\nQUICK SECTION - Draw section line ..")
;(command "pline" pt1 pt2)

;REPLACE POLYLINE WITH SECTION LINE
;(command "select" "last" "")
;(command "erase")
;(command "sectionplane" "type" "plane" pt1 pt2)

:CREATE SECTION BLOCK FROM SECTION LINE
;(command "select" "last" "")
;(command "sectionplanetoblock" " " " " " " " ")

;ERASE SECTION LINE AND UNISOLATE
;(command "erase" SECTION_LINE)
;(command "unisolateobjects")

;FINISH UNDO AND ECHO AND SNAPS
(command "undo" "e")
(setvar "cmdecho" 1)
(setvar "osmode" OS)

)

;QUICK COMMAND TO SCALE BLOCKS IN PAPERSPACE
(Defun c:PSCALE (/ OS SS1)

;GET TARGET SCALE	
(initget "1/16 3/32 1/8 3/16 1/4 3/8 1/2 3/4 1 1-1/2 3")
(setq bscale (getkword "[1/16 3/32 1/8 3/16 1/4 3/8 1/2 3/4 1 1-1/2 3]: &amp;lt;1&amp;gt;"))
(print bscale)

)

;IGNORE THIS LIST OF SCALES AS IM GOING TO USE THIS LATER ON
;4 8 12 16 24 32 48 64 96 128 192​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 18:28:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005503#M9275</guid>
      <dc:creator>christian_paulsen98V29</dc:creator>
      <dc:date>2024-09-06T18:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005598#M9276</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15502947"&gt;@christian_paulsen98V29&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;When it prompts me to select object to isolate, i select it the first time and it doesn't work, but then i select it a second time and it works. I cannot figure out why. ....&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For that, doesn't line 13 just need &lt;FONT color="#FF0000"&gt;completion of the selection&lt;/FONT&gt;?&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;(command "isolateobjects" SS1 &lt;FONT color="#FF0000"&gt;""&lt;/FONT&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 19:30:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005598#M9276</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-09-06T19:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005617#M9277</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15502947"&gt;@christian_paulsen98V29&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;On the second command for scaling, when i try to create a list of options the special characters are creating issues. Id like to show the options using backslash, hyphen, and a quotation marks for the fractions " eg 1-1/2" "&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For that, unforunately, Help for&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (initget)&lt;/STRONG&gt; &lt;/FONT&gt;is specific about the limitation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1725651318578.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1406510iC3C387DFCE5DBFA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1725651318578.png" alt="Kent1Cooper_0-1725651318578.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You could accept typed-in input including a slash like that, &lt;EM&gt;without&lt;/EM&gt; the&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (initget)/(getkword)&lt;/STRONG&gt; &lt;/FONT&gt;approach [meaning you can't pick in the prompt, and should format it differently, such as with {} curly instead of square brackets], and&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (distof)&lt;/STRONG&gt; &lt;/FONT&gt;will accept that kind of typed input and turn it into a real number:&lt;/P&gt;
&lt;P&gt;Command: &lt;STRONG&gt;(distof "1-1/2")&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;returns&lt;BR /&gt;&lt;STRONG&gt;1.5&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;so you could extract your ratio, because:&lt;/P&gt;
&lt;P&gt;Command: &lt;STRONG&gt;(/ 12 (distof "1-1/2"))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;returns&lt;BR /&gt;&lt;STRONG&gt;8.0&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 20:00:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005617#M9277</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-09-06T20:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005648#M9278</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15502947"&gt;@christian_paulsen98V29&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;....&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Drawing the polyline first and then replacing it with the section plane. I thought this would be a good way to draw your line and have visible feedback, and then pass those coordinates to the section plane. Not sure if there is a better way to do this, maybe just skip the polyline completely and just draw from within the "sectionplane" command. ....&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For that, I would agree with the end of the paragraph -- you get as much visual feedback that way as with drawing a Polyline.&amp;nbsp; But if you want to use the Polyline approach, at the very least you need to define your pt1 and pt2 variables before you use them in drawing one, and you need to conclude the Polyline command with Enter "".&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 20:01:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005648#M9278</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-09-06T20:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005805#M9279</link>
      <description>&lt;P&gt;Okay I've definitely made some improvements but I'm not quite there yet. Below is the error I've been getting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Command: QSECT&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;QUICK SECTION - Select objects to section ..&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Select objects: Specify opposite corner: 1 found&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Select objects: Beginning of section plane:End of section plane:; error: bad argument type: VLA-OBJECT &amp;lt;Entity name: 284a840cb80&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other issues ive noticed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There is nothing keeping pt1 and p2 on the same axis, so when i draw the line it comes across crooked. There's also no visual feedback like when drawing a polyline.&lt;/LI&gt;&lt;LI&gt;When the "sectionplanetoblock" dialogue box pops up you have to manually hit select objects, and then it'll select the line automatically. Then you have to manually hit create, and then it'll place the block automatically.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;QUICK COMMAND TO CREATE SECTION BLOCK OF AN OBJECT
(Defun c:QSECT (/ OS SS1)

;BEGIN UNDO AND ECHO AND SNAPS
(command "undo" "be")
(setvar "cmdecho" 0)
(setq OS (getvar "osmode"))
(setvar "osmode" 0)

;ISOLATE OBJECTS
(prompt "\nQUICK SECTION - Select objects to section ..")
(setq SS1 (ssget))
(command "isolateobjects" SS1 "")

(setq pt1 (getpoint "Beginning of section plane:"))
(setq pt2 (getpoint "End of section plane:"))
(command "sectionplane" "type" "plane" pt1 pt2)

;CREATE SECTION BLOCK FROM SECTION LINE
(setq lastobj (entlast))
(command "sectionplanetoblock" lastobj "0,0,0" "" "" "")
(command ".erase" lastobj "")

;SHRINK AND COPY TO CLIPBOARD
(setq lastobj (entlast))
(vlax-put-property lastobj 'XEffectiveScaleFactor "48")
(vlax-put-property lastobj 'YEffectiveScaleFactor "48")
(vlax-put-property lastobj 'ZEffectiveScaleFactor "48")
(command "copyclip" lastobj "")

;ERASE SECTION LINE AND UNISOLATE
(command "unisolateobjects")

;FINISH UNDO AND ECHO AND SNAPS
(command "undo" "e")
(setvar "cmdecho" 1)
(setvar "osmode" OS)

;MESSAGE IF SUCCESSFUL
(print "SECTION BLOCK CREATED AND COPIED TO CLIPBOARD")

)

;QUICK COMMAND TO SCALE BLOCKS IN PAPERSPACE
(Defun c:PSCALE (/ setscale convscale newscale scalefactor)

;GET TARGET SIZE, CONVERT TO A STRING, CONVERT TO A DECIMAL, THEN CONVERT TO SCALE	
(initget "1-16 3-32 1-8 3-16 1-4 3-8 1-2 3-4 2-2 3-2 6-2")
(setq setscale (getkword "[1-16,3-32,1-8,3-16,1-4,3-8,1-2,3-4,2-2,3-2,6-2]: &amp;lt;1-4&amp;gt;"))
(setq convscale (vl-string-subst "/" "-" setscale))
(setq newscale (distof convscale 2))
(setq scalefactor (/ 12 newscale))

;PUSH SCALE TO BLOCK
BLK???
(vlax-put-property blk 'XEffectiveScaleFactor scalefactor)
(vlax-put-property blk 'YEffectiveScaleFactor scalefactor)
(vlax-put-property blk 'ZEffectiveScaleFactor scalefactor)

)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 21:42:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005805#M9279</guid>
      <dc:creator>christian_paulsen98V29</dc:creator>
      <dc:date>2024-09-06T21:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005988#M9280</link>
      <description>&lt;P&gt;Re your setscale your welcome to use this it supports 3/16 as a display etc. Just need a cond that looks at ans, sets your scale value, the default button can be set also look at ahdef and replace with button number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is examples in the top of the code, it's like 3 line is all that is needed. Just save Multi radio buttons.lsp in a support path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 00:23:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13005988#M9280</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-09-07T00:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13006449#M9281</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15502947"&gt;@christian_paulsen98V29&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;There is nothing keeping pt1 and p2 on the same axis, so when i draw the line it comes across crooked. There's also no visual feedback like when drawing a polyline.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For that, don't get the points ahead of time, but within the command, where ORTHO and feedback will be in effect.&amp;nbsp; Instead of this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setq pt1 (getpoint "Beginning of section plane:"))
(setq pt2 (getpoint "End of section plane:"))
(command "sectionplane" "type" "plane" pt1 pt2)
&lt;/LI-CODE&gt;
&lt;P&gt;do this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setvar 'orthomode 1)
(command "sectionplane" "type" "plane" pause pause)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;....&lt;STRONG&gt;Select objects: Beginning of section plane:End of section plane:; error: bad argument type: VLA-OBJECT &amp;lt;Entity name: 284a840cb80&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;....
(setq lastobj (entlast))
....&lt;/LI-CODE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You need to convert it to be able to apply&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (vl...)&lt;/STRONG&gt; &lt;/FONT&gt;functions to it.&amp;nbsp; But the COPYCLIP command is not going to want the VLA object, but the original entity name.&amp;nbsp; So you need both versions, for example:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;....
(setq
  lastent (entlast); entity name
  lastobj (vlax-ename-&amp;gt;vla-object lastent); VLA object
)
....&lt;/LI-CODE&gt;
&lt;P&gt;Then give 'last&lt;STRONG&gt;ent&lt;/STRONG&gt;' to the COPYCLIP selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll also need to do the VLA-object conversion with 'blk' later.&amp;nbsp; &lt;STRONG&gt;Or&lt;/STRONG&gt;, instead of doing that and using&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (vlax-put-property)&lt;/STRONG&gt; &lt;/FONT&gt;functions, you may be able to use&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (setpropertyvalue)&lt;/STRONG&gt; &lt;/FONT&gt;functions instead, which take the entity name.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 11:44:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13006449#M9281</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-09-07T11:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13009712#M9282</link>
      <description>&lt;P&gt;So ive got the section command working. The only issue now is the scale command. I believe something is going wrong when selecting my objects, and somehow i have the wrong object type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;QUICK COMMAND TO SCALE BLOCKS IN PAPERSPACE
(Defun c:PSCALE (/ setscale convscale newscale)

;GET TARGET OBJECT
(setq ss (ssget))

;GET TARGET SIZE, CONVERT TO A STRING, CONVERT TO A DECIMAL, THEN CONVERT TO SCALE	
(initget "1-16 3-32 1-8 3-16 1-4 3-8 1-2 3-4 2-2 3-2 6-2")
(setq setscale (getkword "[1-16,3-32,1-8,3-16,1-4,3-8,1-2,3-4,2-2,3-2,6-2]: &amp;lt;1-4&amp;gt;"))
(setq convscale (vl-string-subst "/" "-" setscale))
(setq newscale (distof convscale 2))

(print newscale)

;PUSH SCALE TO BLOCK
(setpropertyvalue ss "ScaleFactors/X" newscale)
(setpropertyvalue ss "ScaleFactors/Y" newscale)
(setpropertyvalue ss "ScaleFactors/Z" newscale)

)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Sep 2024 16:26:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13009712#M9282</guid>
      <dc:creator>christian_paulsen98V29</dc:creator>
      <dc:date>2024-09-09T16:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13011311#M9283</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15502947"&gt;@christian_paulsen98V29&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... The only issue now is the scale command. ....&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;....
(setq setscale (getkword "[1-16,3-32,1-8,3-16,1-4,3-8,1-2,3-4,2-2,3-2,6-2]: &amp;lt;1-4&amp;gt;"))
....&lt;/LI-CODE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This may not be what you're really asking, but if you want to be able to pick the scale option in the prompt itself, rather than type it in, the separation between options needs to be a slash:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setq setscale (getkword "[1-16/3-32/1-8/3-16/1-4/3-8/1-2/3-4/2-2/3-2/6-2]: &amp;lt;1-4&amp;gt;"))&lt;/LI-CODE&gt;
&lt;P&gt;[which is why slashes are not allowed in keywords].&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 10:32:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13011311#M9283</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-09-10T10:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13011500#M9284</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15502947"&gt;@christian_paulsen98V29&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... The only issue now is the scale command. ....&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;....
(setq newscale (distof convscale 2))
....&lt;/LI-CODE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The 'newscale' variable is the decimal equivalent of the fraction.&amp;nbsp; So for 1/4" = 1'-0" scale, it's 0.25.&amp;nbsp; But the scale factor is the ratio of reality to that scale on paper, or the ratio of a foot to that fraction.&amp;nbsp; See the involvement of&amp;nbsp;&lt;STRONG&gt;12&lt;/STRONG&gt; in the end of Message 3.&amp;nbsp; I think you want this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;....
(setq newscale (/ 12 (distof convscale 2)))
....&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which for 1/4" scale will give you 48.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 12:37:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13011500#M9284</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-09-10T12:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Combine "sectionplane" and "sectionplanetoblock" using AutoLISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13198928#M9285</link>
      <description>&lt;P&gt;Hey There!&lt;BR /&gt;&lt;BR /&gt;I'm wanting to automate the use of the sectionplanetoblock command and ran across this in my research...&lt;BR /&gt;&lt;BR /&gt;Have to progressed any further?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 16:48:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-quot-sectionplane-quot-and-quot-sectionplanetoblock-quot/m-p/13198928#M9285</guid>
      <dc:creator>Send2Yates</dc:creator>
      <dc:date>2024-12-07T16:48:36Z</dc:date>
    </item>
  </channel>
</rss>

