New Additions to Tutorials
An Introduction to Visual Lisp
Let's Get Coding:
← Older revision Revision as of 22:29, 17 November 2009 (2 intermediate revisions not shown)Line 5: Line 5: This tutorial is intended for those already familiar with traditional AutoLisp coding or AutoCAD VBA coding. Those who are not familiar at all may find this to fast passed. This tutorial is intended for those already familiar with traditional AutoLisp coding or AutoCAD VBA coding. Those who are not familiar at all may find this to fast passed. -===Rite Into Code===+===Let's Get Coding=== -Start up the visual lisp editor by keying in vlide at the command prompt. If you are unfamiliar with the Visual Lisp Editor please refer to the [http://www.afralisp.net/vl/vl-edit.htm tutorial over at Afralisp.net].+Start up the visual lisp editor by keying in vlide at the command prompt. Once in the editor -[[File:VisualLisp_Editor_001.png|600px|Loading FactoryCAD]]+<source lang="cadlisp"> +(DEFUN C:PipeIns ( / entname obj intInsThick) + (vl-load-com) +</source> +[[File:VisualLisp_Editor_001.png|400px|thumb|right|If you are unfamiliar with the Visual Lisp Editor please refer to the [http://www.afralisp.net/vl/vl-edit.htm tutorial over at Afralisp.net]]] ===Description of FactoryXML Objects=== ===Description of FactoryXML Objects===File:VisualLisp Editor 001.png
uploaded "[[File:VisualLisp Editor 001.png]]"
New page
An Introduction to Visual Lisp
New page
[[Main Page]] > [[Base AutoCAD]]== Introduction ==
Several years ago Autodesk released an updated way for using the lisp language from within AutoCAD. This new hybrid language is called Visual Lisp and is an interesting melding of a lisp functional language with the more modern object oriented languages. This has allowed for code that is much easier for novices to write but much more wordy for those experienced with traditional AutoLisp.
This tutorial is intended for those already familiar with traditional AutoLisp coding or AutoCAD VBA coding. Those who are not familiar at all may find this to fast passed.
===Rite Into Code===
Start up the visual lisp editor by keying in vlide at the command prompt. If you are unfamiliar with the Visual Lisp Editor please refer to the [http://www.afralisp.net/vl/vl-edit.htm tutorial over at Afralisp.net].
[[File:VisualLisp_Editor_001.png|600px|Loading FactoryCAD]]
===Description of FactoryXML Objects===
Base AutoCAD
Related Pages:
← Older revision Revision as of 22:02, 17 November 2009 (4 intermediate revisions not shown)Line 1: Line 1: ==About AutoCAD== ==About AutoCAD== [[File:AutoCAD_2010_screenshot_001.png|400px|thumb|right|AutoCAD Main Window]] [[File:AutoCAD_2010_screenshot_001.png|400px|thumb|right|AutoCAD Main Window]] +[http://en.wikipedia.org/wiki/Autocad From Wikipedia] + AutoCAD is a CAD (Computer Aided Design or Computer Aided Drafting) software application for 2D and 3D design and drafting, developed and sold by Autodesk, Inc. Initially released in late 1982, AutoCAD was one of the first CAD programs to run on personal computers, and notably the IBM PC. Most CAD software at the time ran on graphics terminals connected to mainframe computers or mini-computers. AutoCAD is a CAD (Computer Aided Design or Computer Aided Drafting) software application for 2D and 3D design and drafting, developed and sold by Autodesk, Inc. Initially released in late 1982, AutoCAD was one of the first CAD programs to run on personal computers, and notably the IBM PC. Most CAD software at the time ran on graphics terminals connected to mainframe computers or mini-computers. Line 12: Line 14: ==Tutorials== ==Tutorials== -'''[[Introduction to MicroStation v8i for an AutoCAD user]]'''+'''[[Basic 2D AutoCAD]]''' - + -'''[[Introduction to AccuDraw]]'''+ - + -'''[[AccuDraw Cheat Sheet]]'''+ -'''[[Precision Keyin Cheat Sheet]]'''+'''[[An Introduction to Visual Lisp]]''' ==Related Pages== ==Related Pages== -* [[MicroStation Architecture]]+* [[AutoCAD Architectural Desktop]] -* [[MicroStation Building Mechanical]]+* [[AutoCAD MEP]] -* [[MicroStation Building Electrical]]+* [[AutoCAD Civil 3D]] -* [[MicroStation Structural]]+ ==External Links== ==External Links== -* [http://www.bentley.com/en-US/Products/MicroStation/ MicroStation home page] at Bentley+* [http://www.autodesk.com/autocad Autodesk AutoCAD information] -* [http://communities.bentley.com/forums/273/ShowForum.aspx MicroStation Forums] at BE Communities by Bentley+* [http://myfeedback.autodesk.com/history/area51.htm AutoCAD History] by Shaan Hurley +* [http://www.augi.com/ Autodesk User Group International (AUGI)] ===Free Viewer=== ===Free Viewer=== -*[http://www.bentley.com/en-US/Products/Bentley+View/ Bentley View] by Bentley, 58.2 Mb.+*[http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=9078813 DWG TrueView] by Autodesk +*[http://usa.autodesk.com/adsk/servlet/pc/index?id=12423405&siteID=123112/ DWF Viewer] by AutodeskFile:AutoCAD 2010 screenshot 001.png
uploaded "[[File:AutoCAD 2010 screenshot 001.png]]"
New page
Base AutoCAD
Created page with '==About AutoCAD== AutoCAD Main Window AutoCAD is a CAD (Computer Aided Design or Computer Aided Drafting) software appl...'
New page
==About AutoCAD==[[File:AutoCAD_2010_screenshot_001.png|400px|thumb|right|AutoCAD Main Window]]
AutoCAD is a CAD (Computer Aided Design or Computer Aided Drafting) software application for 2D and 3D design and drafting, developed and sold by Autodesk, Inc. Initially released in late 1982, AutoCAD was one of the first CAD programs to run on personal computers, and notably the IBM PC. Most CAD software at the time ran on graphics terminals connected to mainframe computers or mini-computers.
In earlier releases, AutoCAD used primitive entities — such as lines, polylines, circles, arcs, and text — as the foundation for more complex objects. Since the mid-1990s, AutoCAD has supported custom objects through its C++ API. Modern AutoCAD includes a full set of basic solid modeling and 3D tools. With the release of AutoCAD 2007 came improved 3D modeling functionality, which meant better navigation when working in 3D. Moreover, it became easier to edit 3D models. The mental ray engine was included in rendering, it was now possible to do quality renderings. AutoCAD 2010 introduced parametric functionality and mesh modeling.
AutoCAD supports a number of application programming interfaces (APIs) for customization and automation. These include AutoLISP, Visual LISP, VBA, .NET and ObjectARX. ObjectARX is a C++ class library, which was also the base for products extending AutoCAD functionality to specific fields, to create products such as AutoCAD Architecture, AutoCAD Electrical, AutoCAD Civil 3D, or third-party AutoCAD-based applications.
AutoCAD currently runs exclusively on Microsoft Windows desktop operating systems. Versions for Unix and Mac OS were released in the 1980s and 1990s, but these were later dropped. AutoCAD can run on an emulator or compatibility layer like VMware Workstation or Wine, albeit subject to various performance issues that can often arise when working with 3D objects or large drawings.
AutoCAD and AutoCAD LT are available for English, German, French, Italian, Spanish, Japanese, Korean, Chinese Simplified, Chinese Traditional, Russian, Czech, Polish, Hungarian, Brazilian Portuguese, Danish, Dutch, Swedish, Finnish, Norwegian and Vietnamese. The extent of localization varies from full translation of the product to documentation only.
==Tutorials==
'''[[Introduction to MicroStation v8i for an AutoCAD user]]'''
'''[[Introduction to AccuDraw]]'''
'''[[AccuDraw Cheat Sheet]]'''
'''[[Precision Keyin Cheat Sheet]]'''
==Related Pages==
* [[MicroStation Architecture]]
* [[MicroStation Building Mechanical]]
* [[MicroStation Building Electrical]]
* [[MicroStation Structural]]
==External Links==
* [http://www.bentley.com/en-US/Products/MicroStation/ MicroStation home page] at Bentley
* [http://communities.bentley.com/forums/273/ShowForum.aspx MicroStation Forums] at BE Communities by Bentley
===Free Viewer===
*[http://www.bentley.com/en-US/Products/Bentley+View/ Bentley View] by Bentley, 58.2 Mb.
Basic Parametrics Using FactoryXML
File:XML Height.jpg
uploaded "[[File:XML Height.jpg]]"
New page
Basic Parametrics Using FactoryXML
Finishing Up The Table:
← Older revision Revision as of 22:51, 5 November 2009 Line 55: Line 55: #Do the same for '''Leg2''', only this time choose '''Table Width''' and use '''Location Y''' instead. You will still use '''value-2''' for your equation. #Do the same for '''Leg2''', only this time choose '''Table Width''' and use '''Location Y''' instead. You will still use '''value-2''' for your equation. #For '''Leg4''', you are going to need to add an equation under both '''Table Length''' and '''Table Width'''. Use the exact same equations as you did for the other two legs, just be sure to pick '''Leg4''' as the Element Name. #For '''Leg4''', you are going to need to add an equation under both '''Table Length''' and '''Table Width'''. Use the exact same equations as you did for the other two legs, just be sure to pick '''Leg4''' as the Element Name. -#:When complete your controls should look like the images below.[[File:XML_Width.jpg|none|frame|Table Length Control]][[File:XML_Length.jpg|none|frame|Table Width Control]]+#:When complete your controls should look like the images below.[[File:XML_Width.jpg|none|frame|Table Width Control]][[File:XML_Length.jpg|none|frame|Table Length Control]] #Next we need to set up a height control. Create a new '''Custom Translation''' under the master segment. Call this '''Table Height''' and enter '''24''' for the '''Value'''. Then click the Custom Modifications button. Under the '''Element Name''', choose '''Table Top'''. Under '''Attribute''' heading choose '''Location Z'''. Under Equation, type '''value-24'''. This moves the table top, but the legs still don’t re-size. #Next we need to set up a height control. Create a new '''Custom Translation''' under the master segment. Call this '''Table Height''' and enter '''24''' for the '''Value'''. Then click the Custom Modifications button. Under the '''Element Name''', choose '''Table Top'''. Under '''Attribute''' heading choose '''Location Z'''. Under Equation, type '''value-24'''. This moves the table top, but the legs still don’t re-size. #To re-size the legs, Add more custom modifications under the '''Table Height''' translation. Choose '''Leg1''' then choose '''Height'''. Type '''value''' for the equation. Repeat for '''Leg2, Leg3, Leg4'''. #To re-size the legs, Add more custom modifications under the '''Table Height''' translation. Choose '''Leg1''' then choose '''Height'''. Type '''value''' for the equation. Repeat for '''Leg2, Leg3, Leg4'''. [[File:XML_Height.jpg|none|frame|Finished Table Height Control]] [[File:XML_Height.jpg|none|frame|Finished Table Height Control]]File:XML Length.jpg
uploaded "[[File:XML Length.jpg]]"
New page
Basic Parametrics Using FactoryXML
Finishing Up The Table:
← Older revision Revision as of 22:50, 5 November 2009 Line 55: Line 55: #Do the same for '''Leg2''', only this time choose '''Table Width''' and use '''Location Y''' instead. You will still use '''value-2''' for your equation. #Do the same for '''Leg2''', only this time choose '''Table Width''' and use '''Location Y''' instead. You will still use '''value-2''' for your equation. #For '''Leg4''', you are going to need to add an equation under both '''Table Length''' and '''Table Width'''. Use the exact same equations as you did for the other two legs, just be sure to pick '''Leg4''' as the Element Name. #For '''Leg4''', you are going to need to add an equation under both '''Table Length''' and '''Table Width'''. Use the exact same equations as you did for the other two legs, just be sure to pick '''Leg4''' as the Element Name. -#:When complete your controls should look like the images below.[[File:XML_ModScreen2.jpg|none|frame|Table Length Control]][[File:XML_ModScreen3.jpg|none|frame|Table Width Control]]+#:When complete your controls should look like the images below.[[File:XML_Width.jpg|none|frame|Table Length Control]][[File:XML_Length.jpg|none|frame|Table Width Control]] #Next we need to set up a height control. Create a new '''Custom Translation''' under the master segment. Call this '''Table Height''' and enter '''24''' for the '''Value'''. Then click the Custom Modifications button. Under the '''Element Name''', choose '''Table Top'''. Under '''Attribute''' heading choose '''Location Z'''. Under Equation, type '''value-24'''. This moves the table top, but the legs still don’t re-size. #Next we need to set up a height control. Create a new '''Custom Translation''' under the master segment. Call this '''Table Height''' and enter '''24''' for the '''Value'''. Then click the Custom Modifications button. Under the '''Element Name''', choose '''Table Top'''. Under '''Attribute''' heading choose '''Location Z'''. Under Equation, type '''value-24'''. This moves the table top, but the legs still don’t re-size. #To re-size the legs, Add more custom modifications under the '''Table Height''' translation. Choose '''Leg1''' then choose '''Height'''. Type '''value''' for the equation. Repeat for '''Leg2, Leg3, Leg4'''. #To re-size the legs, Add more custom modifications under the '''Table Height''' translation. Choose '''Leg1''' then choose '''Height'''. Type '''value''' for the equation. Repeat for '''Leg2, Leg3, Leg4'''. -[[File:XML_ModScreen4.jpg|none|frame|Finished Table Height Control]]+[[File:XML_Height.jpg|none|frame|Finished Table Height Control]]File:XML ModScreen2.jpg
deleted "[[File:XML ModScreen2.jpg]]"
New page
File:XML ModScreen3.jpg
uploaded a new version of "[[File:XML ModScreen3.jpg]]"
New page
Basic Parametrics Using FactoryXML
Finishing Up The Table:
← Older revision Revision as of 22:44, 5 November 2009 (2 intermediate revisions not shown)Line 55: Line 55: #Do the same for '''Leg2''', only this time choose '''Table Width''' and use '''Location Y''' instead. You will still use '''value-2''' for your equation. #Do the same for '''Leg2''', only this time choose '''Table Width''' and use '''Location Y''' instead. You will still use '''value-2''' for your equation. #For '''Leg4''', you are going to need to add an equation under both '''Table Length''' and '''Table Width'''. Use the exact same equations as you did for the other two legs, just be sure to pick '''Leg4''' as the Element Name. #For '''Leg4''', you are going to need to add an equation under both '''Table Length''' and '''Table Width'''. Use the exact same equations as you did for the other two legs, just be sure to pick '''Leg4''' as the Element Name. -When complete your controls should look like the images below.+#:When complete your controls should look like the images below.[[File:XML_ModScreen2.jpg|none|frame|Table Length Control]][[File:XML_ModScreen3.jpg|none|frame|Table Width Control]] -[[File:XML_ModScreen2.jpg|none|frame|Table Length Control]]+#Next we need to set up a height control. Create a new '''Custom Translation''' under the master segment. Call this '''Table Height''' and enter '''24''' for the '''Value'''. Then click the Custom Modifications button. Under the '''Element Name''', choose '''Table Top'''. Under '''Attribute''' heading choose '''Location Z'''. Under Equation, type '''value-24'''. This moves the table top, but the legs still don’t re-size. -[[File:XML_ModScreen3.jpg|none|frame|Table Width Control]]+#To re-size the legs, Add more custom modifications under the '''Table Height''' translation. Choose '''Leg1''' then choose '''Height'''. Type '''value''' for the equation. Repeat for '''Leg2, Leg3, Leg4'''. +[[File:XML_ModScreen4.jpg|none|frame|Finished Table Height Control]]Basic Parametrics Using FactoryXML
Finishing Up The Table:
← Older revision Revision as of 22:18, 5 November 2009 (5 intermediate revisions not shown)Line 36: Line 36: #With the control highlighted click the Custom Modifications button. You will now be in the Modifications dialogue box. Within this box you will make modifications to the properties of other objects within the segment you are working on.[[File:XML_ModScreen1.jpg|none|frame|Adding Modification to Control]] #With the control highlighted click the Custom Modifications button. You will now be in the Modifications dialogue box. Within this box you will make modifications to the properties of other objects within the segment you are working on.[[File:XML_ModScreen1.jpg|none|frame|Adding Modification to Control]] #Click the [[File:XML_Add.jpg]] button from the top of the modifications window. You should see a new line added to the window. Note that each item must have three values assigned to it. They are as follows; #Click the [[File:XML_Add.jpg]] button from the top of the modifications window. You should see a new line added to the window. Note that each item must have three values assigned to it. They are as follows; -*Element Name – Object or Control to be modified.+#*Element Name – Object or Control to be modified. -*Attribute – What property of the Object / Control you are modifying. +#*Attribute – What property of the Object / Control you are modifying. -*Equation – How the value of that property will be derived.+#*Equation – How the value of that property will be derived. #Select Table Top for the element name, Length for the attribute and enter value as the Equation. Within ObjectXML the word ‘value’ is really a variable which holds the ‘value’ the control is set to, in this case what you have just entered will cause the length of the object Table Top to be set to 48. Click OK to exit this dialog box. #Select Table Top for the element name, Length for the attribute and enter value as the Equation. Within ObjectXML the word ‘value’ is really a variable which holds the ‘value’ the control is set to, in this case what you have just entered will cause the length of the object Table Top to be set to 48. Click OK to exit this dialog box. #You should see now that the table length as excepted has changed. The legs have not moved however since we did not put them into the Modification box. #You should see now that the table length as excepted has changed. The legs have not moved however since we did not put them into the Modification box. +#Next repeat all the above steps to create another control with the name of Table Width. Set its value to 24. Make sure to set the width attribute of the table top this time. +<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"> +{| class="wikitable" +! Tip +|- +| Segments are a typical Grandparent / Parent / Child programming paradigm. What this means is that a control located in a Child segment will not be able to make changes to objects in its Parent / Grandparent segments. This becomes important when working on large, complex objects. +|} +</blockquote> ===Finishing Up The Table=== ===Finishing Up The Table=== +To make the legs move with the table top while resizing, you will need to add a couple more modifications to the ones you just created (Table Length and Table Width). +#Click on '''Table Length''' in the tree and then click the '''Custom Modifications''' button. You will see the modification you already made for '''Table Length''' listed below. Click the '''Add''' button to add another modification. This time, click '''Leg3''' under '''Element Name'''. Under the '''Attribute''' heading, click '''Location X'''. Under the '''Equation''' field, type '''value-2'''. (This is because you are moving the leg the value of the length (48) but have to move it back 2 to account for the leg’s thickness.) +#Do the same for '''Leg2''', only this time choose '''Table Width''' and use '''Location Y''' instead. You will still use '''value-2''' for your equation. +#For '''Leg4''', you are going to need to add an equation under both '''Table Length''' and '''Table Width'''. Use the exact same equations as you did for the other two legs, just be sure to pick '''Leg4''' as the Element Name. +When complete your controls should look like the images below. +[[File:XML_ModScreen2.jpg|none|frame|Table Length Control]] +[[File:XML_ModScreen3.jpg|none|frame|Table Width Control]]File:XML Add.jpg
uploaded "[[File:XML Add.jpg]]"
New page
Basic Parametrics Using FactoryXML
Making the Control Do Something:
← Older revision Revision as of 22:12, 5 November 2009 Line 35: Line 35: ===Making the Control Do Something=== ===Making the Control Do Something=== #With the control highlighted click the Custom Modifications button. You will now be in the Modifications dialogue box. Within this box you will make modifications to the properties of other objects within the segment you are working on.[[File:XML_ModScreen1.jpg|none|frame|Adding Modification to Control]] #With the control highlighted click the Custom Modifications button. You will now be in the Modifications dialogue box. Within this box you will make modifications to the properties of other objects within the segment you are working on.[[File:XML_ModScreen1.jpg|none|frame|Adding Modification to Control]] -#Click the button from the top of the modifications window. You should see a new line added to the window. Note that each item must have three values assigned to it. They are as follows;+#Click the [[File:XML_Add.jpg]] button from the top of the modifications window. You should see a new line added to the window. Note that each item must have three values assigned to it. They are as follows; *Element Name – Object or Control to be modified. *Element Name – Object or Control to be modified. *Attribute – What property of the Object / Control you are modifying. *Attribute – What property of the Object / Control you are modifying.File:XML ModScreen1.jpg
uploaded "[[File:XML ModScreen1.jpg]]"
New page
Basic Parametrics Using FactoryXML
Making the Control Do Something:
← Older revision Revision as of 22:11, 5 November 2009 (8 intermediate revisions not shown)Line 20: Line 20: '''Step 2''' - Create the four legs by first highlighting the master segment in the tree on the left then clicking the Box button on the bottom left. Type Leg1 in the name field and set the size of the leg to 2x2x24 high. For location put -24 in the Z box. This will place the leg under the Table Top in the corner. Repeat this process for the other 3 legs changing the name, size and Z location only. Do not move them in the X or Y. It is OK that they are stacked on top of one and other. '''Step 2''' - Create the four legs by first highlighting the master segment in the tree on the left then clicking the Box button on the bottom left. Type Leg1 in the name field and set the size of the leg to 2x2x24 high. For location put -24 in the Z box. This will place the leg under the Table Top in the corner. Repeat this process for the other 3 legs changing the name, size and Z location only. Do not move them in the X or Y. It is OK that they are stacked on top of one and other. <br> <br> -[[File:ObjectToolkit2.jpg|none|frame|The Object Toolkit Window]]+[[File:ObjectToolkit2.jpg|none|frame|The Object Toolkit With Legs Added]] <br> <br> Line 30: Line 30: To add the control first make sure you have the master segment highlighted. In this case it should be called just “Segment” and be the first item in your selection tree. With “Segment” highlighted click the Add Custom Translation Control button. [[File:XML_TransCont.png]] Call this new control “Table Length” and set its value property to 48. To add the control first make sure you have the master segment highlighted. In this case it should be called just “Segment” and be the first item in your selection tree. With “Segment” highlighted click the Add Custom Translation Control button. [[File:XML_TransCont.png]] Call this new control “Table Length” and set its value property to 48. <br> <br> -[[File:ObjectToolkit3.jpg|none|frame|The Object Toolkit Window]]+[[File:ObjectToolkit3.jpg|none|frame|Custom Control Added to Object]] <br> <br> ===Making the Control Do Something=== ===Making the Control Do Something=== +#With the control highlighted click the Custom Modifications button. You will now be in the Modifications dialogue box. Within this box you will make modifications to the properties of other objects within the segment you are working on.[[File:XML_ModScreen1.jpg|none|frame|Adding Modification to Control]] +#Click the button from the top of the modifications window. You should see a new line added to the window. Note that each item must have three values assigned to it. They are as follows; +*Element Name – Object or Control to be modified. +*Attribute – What property of the Object / Control you are modifying. +*Equation – How the value of that property will be derived. +#Select Table Top for the element name, Length for the attribute and enter value as the Equation. Within ObjectXML the word ‘value’ is really a variable which holds the ‘value’ the control is set to, in this case what you have just entered will cause the length of the object Table Top to be set to 48. Click OK to exit this dialog box. +#You should see now that the table length as excepted has changed. The legs have not moved however since we did not put them into the Modification box. + ===Finishing Up The Table=== ===Finishing Up The Table===File:XML TransCont.png
uploaded "[[File:XML TransCont.png]]"
New page


Linked In
Mail / Chat @ GMail
Subscribe