neekcotrack Posted August 26, 2008 Author Posted August 26, 2008 LWPOLYLINE Layer: "Defpoints" Space: Paper space Layout: 22X34 Handle = 7E71 Closed Constant width 0'-0" area 540.000 square in. (3.75000 square ft.) perimeter 8'-0" at point X= 0'-2" Y= 0'-2" Z= 0'-0" at point X= 2'-8" Y= 0'-2" Z= 0'-0" at point X= 2'-8" Y= 1'-8" Z= 0'-0" at point X= 0'-2" Y= 1'-8" Z= 0'-0" Clipping entity for viewport with handle = 7E73 VIEWPORT Layer: "Defpoints" Space: Paper space Layout: 22X34 Handle = 7E73 Status: On and Active Scale relative to Paper space: 0.0313xp Clipping is on, clip entity handle = 7E71 Quote
Footpeg Posted August 26, 2008 Posted August 26, 2008 VIEWPORT Layer: "Defpoints" Space: Paper space Layout: 22X34 Handle = 7E73 Status: On and Active Scale relative to Paper space: 0.0313xp Clipping is on, clip entity handle = 7E71 This shows 0.0313xp, which is actually 0.03125xp after roundoff to 4 places, and that's equivalent to a scale factor of 32 which is 3/8"=1'-0", and that's what I get if I choose option 9 to enter a custom scale and enter 32. If I multiply 0.0313 by 0.75 I get 0.023475 which equals 3/128, so I'm very confused as to what you are entering, and where you are getting fractions? Are you saying you entered 24 and would up with this? You should have posted the entire sequence beginning with the command prompt where you typed in SETUP. That would answer this question. Footpeg Quote
neekcotrack Posted August 26, 2008 Author Posted August 26, 2008 Command: setup Enter Sheet [1]22X34,[2]24X36,[3]30X42,[4]36X48/<Exit>: 1 Enter Scale [1]FULL,[2]1/2,[3]1/4,[4]1/8,[5]1/20,[6]1/30,[7]1/40,[8]1/50,[9]custom/<Exit>: 9 Enter the desired scale factor (e.g. 16.0 for 3/4"=1')/<Exit>: 24 _.LAYOUT Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>: D Enter name of layout to delete <22X34>: 24X36 Layout "24X36" deleted. Command: _.LAYOUT Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>: D Enter name of layout to delete <22X34>: 30X42 Layout "30X42" deleted. Command: _.LAYOUT Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>: D Enter name of layout to delete <22X34>: 36X48 Layout "36X48" deleted. Command: _.LAYOUT Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>: N Enter new Layout name <Layout1>: 22X34 Command: _.LAYER Current layer: "0" Enter an option [?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock /stAte]: S Enter layer name to make current or <select object>: DEFPOINTS Enter an option [?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock /stAte]: Command: MODEL Regenerating model. Command: _.RECTANG Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: 0,0 Specify other corner point or [Area/Dimensions/Rotation]: Command: .color Enter default object color [Truecolor/COlorbook] <BYLAYER>: red Command: _.RECTANG Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: Specify other corner point or [Area/Dimensions/Rotation]: Command: _.Line Specify first point: Specify next point or [undo]: Specify next point or [undo]: Command: _.Line Specify first point: Specify next point or [undo]: Specify next point or [undo]: Command: _.Circle Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: Specify radius of circle or [Diameter]: 216.0000000000000 Command: _.Circle Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: Specify radius of circle or [Diameter] <18'-0">: 360.0000000000000 Command: .color Enter default object color [Truecolor/COlorbook] <1 (red)>: bylayer Command: _.ZOOM Specify corner of window, enter a scale factor (nX or nXP), or [All/Center/Dynamic/Extents/Previous/Scale/Window/Object] <real time>: C Specify center point: Enter magnification or height <23226'-6 45/64">: 575.9999999999999 Command: _.DIMSCALE Enter new value for DIMSCALE <8'-0">: 24.00000000000000 Command: _.LTSCALE Enter new linetype scale factor <48.0000>: 12.00000000000000 Regenerating model. Command: _.LAYOUT Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>: S Enter layout to make current <22X34>: 22x34 Regenerating layout. Command: _.ORTHO Enter mode [ON/OFF] <OFF>: ON Command: _.ERASE Select objects: L 1 found 1 was the paper space viewport. Select objects: Command: _.VPORTS Specify corner of viewport or [ON/OFF/Fit/Shadeplot/Lock/Object/Polygonal/Restore/LAyer/2/3/4] <Fit>: P Specify start point: 2,2 Specify next point or [Arc/Length/Undo]: Specify next point or [Arc/Close/Length/Undo]: Specify next point or [Arc/Close/Length/Undo]: Specify next point or [Arc/Close/Length/Undo]: C Regenerating model. Command: _.MSPACE Command: _.ZOOM Specify corner of window, enter a scale factor (nX or nXP), or [All/Center/Dynamic/Extents/Previous/Scale/Window/Object] <real time>: C Specify center point: Enter magnification or height <60'-7 27/128">: 575.9999999999999 Command: _.ZOOM Specify corner of window, enter a scale factor (nX or nXP), or [All/Center/Dynamic/Extents/Previous/Scale/Window/Object] <real time>: 5/128"XP Requires a distance, numberX, or option keyword. Specify corner of window, enter a scale factor (nX or nXP), or [All/Center/Dynamic/Extents/Previous/Scale/Window/Object] <real time>: Command: Command: Command: Command: ps PSPACE Command: li LIST Select objects: l 1 found Select objects: VIEWPORT Layer: "Defpoints" Space: Paper space Layout: 22X34 Visual Style: 2D Wireframe Handle = 7e73 Status: On and Active Scale relative to Paper space: 0.0313xp Annotation Scale: 1/8" = 1'-0" Clipping is on, clip entity handle = 7e71 center point, X= 1'-5" Y= 0'-11" Z= 0'-0" width 2'-6" height 1'-6" Quote
Footpeg Posted August 26, 2008 Posted August 26, 2008 Command: setupEnter Sheet [1]22X34,[2]24X36,[3]30X42,[4]36X48/: 1 Enter Scale [1]FULL,[2]1/2,[3]1/4,[4]1/8,[5]1/20,[6]1/30,[7]1/40,[8]1/50,[9]custom/: 9 Enter the desired scale factor (e.g. 16.0 for 3/4"=1')/: 24 . . . Command: _.ZOOM Specify corner of window, enter a scale factor (nX or nXP), or [All/Center/Dynamic/Extents/Previous/Scale/Window/Object] : 5/128"XP Requires a distance, numberX, or option keyword. Specify corner of window, enter a scale factor (nX or nXP), or [All/Center/Dynamic/Extents/Previous/Scale/Window/Object] : Command: Okay! That helped alot, and I found the problem, which is the RTOS function was converting the scale factor to the default units (in your case, Architectural), and the STRCAT procuced "5/128\"XP", and the ZOOM XP command crashed (see where it echoed "Requires a distance, numberX, or option keyword"). Change the following line of code: (COMMAND "_.ZOOM" (strcat (rtos (/ 1.0 CSCALE)) "XP")) to [b](COMMAND "_.ZOOM" (strcat (rtos (/ 1.0 CSCALE)[color=Blue] 2 10[/color]) "XP"))[/b] and give that a try. All I really added was the 2 10 parameters to the rtos function which forces the values to decimal format and 10 places. BTW, the reason you AutoCAD spit out so much stuff for your to show me is because CMDECHO is set to 1. In this case, it helped, but if you don't want to see everything, set the value to 0. Footpeg Quote
neekcotrack Posted August 26, 2008 Author Posted August 26, 2008 Thanks for everything it works perfect now. Thanks again. Quote
Footpeg Posted August 26, 2008 Posted August 26, 2008 Thanks for everything it works perfect now. Thanks again. I'm very glad to hear that:D! Footpeg Quote
neekcotrack Posted August 26, 2008 Author Posted August 26, 2008 Ok guess I am not done. I have been playing with the other sheets but can't get the custom option on the other sheets to work. Quote
Footpeg Posted August 26, 2008 Posted August 26, 2008 Ok guess I am not done. I have been playing with the other sheets but can't get the custom option on the other sheets to work. Okay, but you have to give me a clue as to what your coding for the next sheet is doing, or not doing? And, show me what you've done for the next sheet. Footpeg Quote
neekcotrack Posted August 26, 2008 Author Posted August 26, 2008 Sorry I figured it out I left a ( out. Quote
Footpeg Posted August 26, 2008 Posted August 26, 2008 Sorry I figured it out I left a ( out. Glad you found it! Are you writing your code in the Visual Lisp editor? If so, you can have it check for error, and locate matching parenthesis for you! I don't care how good you are, there will always be wayward or missing parens. Footpeg Quote
neekcotrack Posted August 27, 2008 Author Posted August 27, 2008 Ok I am having a problem for some reason. When I run the custom and do it fo the 30x42 and the other two i changes the page setup manager setting for that tab. Do you know why it would be doing that? Quote
Footpeg Posted August 27, 2008 Posted August 27, 2008 Ok I am having a problem for some reason. When I run the custom and do it fo the 30x42 and the other two i changes the page setup manager setting for that tab. Do you know why it would be doing that? Sorry, I don't understand the question:(. Could you elaborate on what it's doing, and your code for the 30x40 would be helpful. Footpeg Quote
neekcotrack Posted August 29, 2008 Author Posted August 29, 2008 Sorry, I don't understand the question:(. Could you elaborate on what it's doing, and your code for the 30x40 would be helpful. Footpeg It was something with not all of the sheets tabs deleting right. Thanks for everything thing again. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.