You are browsing the archive for click.

Creating New Command in AutoCAD

August 13, 2009 in AutoCAD, CAD, Revit

cui If I’m not mistaken, AutoCAD use CUI since 2006. Not MNU or MNS as it used to be. CUI (customize user interface) is a XML file. It’s easier to manage. In this post, I will create a new command to set all properties to ByLayer. This is a request from my colleague. He likes to override color and linetype when he draw, and want to be able to reset all of the properties back to ByLayer. By clicking my new command, every properties will be set to By Layer.

First you may want to take a look to what I want to achieve. Click here to see animation.

Let’s do it. First open CUI by accessing menu tools>customize>interface… or by typing CUI then [enter] from command line. You will see browser like this. If you use ribbon, find it in manage tab, customization section.

 cui browser

CUI browser is easier to use than creating old AutoCAD menu. There are 3 areas I would like to highlight

  1. All customization. Here is where you can put all your command. Either you want to put it in ribbon, tool bar, right click context menu, and even double click.
  2. Command list. Here is all your AutoCAD commands. When you create a new command, it will appear here.
  3. Properties. Here is your command properties. After creating new command, you will have to define what it should do.

Let’s start with creating a new command. Right click on command list (2), and select new command from context menu. Rename it. Give it name ‘All ByLayer’ without quote. You can see the animation here.

Now, we have created a command. But it doesn’t know what to do yet. We have to tell it what it should do by typing macro command in properties area (3). Type this macro on the macro field.

^C^C(setvar "cecolor" "ByLayer") (setvar "celweight" -1) (setvar "celtype" "ByLayer")

^C^C will cancel all running command. Similar to pressing [esc] twice. Then we tell AutoCAD to change current color to ByLayer. Then current lineweight to ByLayer, and finally current line type to ByLayer.

Give a description for this command.

We have created a new command, and give instruction what it should do when it’s executed. But AutoCAD doesn’t know yet, where you want the command can be accessed. Now find your command in command list. We named it ‘All ByLayer’ before.

Click and drag it to the place where you want it appear. In this example below, I put it on my layer toolbar. You can also put it on right click context menu (more about this later) or double click!

command position

Click OK on this CUI browser to finish our work. Now take a look on your layer toolbar (or anywhere you put it before). Is it there? Try it!

Not so hard right? Learning macro is one thing, but creating customization with CUI is a lot easier than MNU or MNS. Good luck!




Source: CAD Notes – Creating New Command in AutoCAD
Go to Source: CAD Notes

Creating Staircase

August 13, 2009 in AutoCAD, CAD, Revit

staircase

If you always create stairs by drafting it in AutoCAD, you will love stair tool in Revit! Revit create stairs automatically, it will also calculate how many risers you should create to the next level. It’s pretty easy!

We have created 2 story house. So, we need to add a stair to connect this two levels. Open your 1st floor level plan. We will start here.

First of all, let’s put some references for our staircase so it will be easier to define our staircase run. Activate Ref Plane from your ribbon bar.

ref plane

Place your plane as below. You remember how to place objects in Revit right? It similar way with placing exterior walls here and interior walls here.

create-plane

Now, let’s do the magic. Activate stair tool. This also bring us to sketch mode, just like floor and roof tool.

stair

By default, the active draw mode is run. We can also define it by drawing boundary and riser. More about this later. For now, just make sure run is the active mode.

stair draw mode

Now we have to define the points for this stair run. Click consecutively on point 1,2,3 then 4 as below.

stair-location

When defining the stair run, you will see a preview of your future stair. It will also mention how many more riser you should create. It should be 0 remaining at point (4).

create-stair 

Now that we finish defining our stair run, click finish stairs.

finish stair

Review your design. Open your 2nd Floor level plan. You should see the 2nd story floor connected to our stair is not correct yet. Let’s edit it. You do remember how to do it right? Review how to do it here.

edit-floor

Let’s review it by placing a camera. Open your 1st floor plan. Open your view tab on your ribbon. Click the small arrow below 3D View, then click camera.

camera

Now place your camera: first click define camera location, and second point define camera target.

camera placement

You might see that not all of your staircase shown. Select your camera view boundary, then click and drag the view grip. Arrange until you see your staircase as you want to.

grip control 

Try to select your railing, and change the railing type!




Source: CAD Notes – Creating Staircase
Go to Source: CAD Notes

How to: Get Hi Res Image from AutoCAD?

August 6, 2009 in AutoCAD, CAD, Revit

camera This is not about rendering. This is about how you can get high resolution image from your drawing. It might be layouts, elevation view, etc. I had this question several times. You can just plot your model/layout.

Try to open your plot dialog box. You can see a plotter named PublishToWebJPG.pc3. Use this plotter, you will get a JPG image with fair quality. Ready to be embedded to your Power Point for your presentation.

plotters

Still not good enough? How about BMP, TIFF, or TGA?

You can add more plotter for those file types. Open your control panel. You will see Autodesk Plotter Manager icon here. Double click to open it.

adsk plotter manager

Basically this will only open another folder. This folder contains all plotter that can be used by AutoCAD. To add new plotter, double click Add-A-Plotter Wizard.

add a plotter wizard

This will bring you to a wizard. Click next at the first page.

On the next page, select My Computer. Then click next. On the next page, you can see a list of manufacturers, and their plotter model. We want to add TIFF this time. Select Raster File Formats as manufacturers. Then select TIFF Version 6 as plotter model.

plotter model

You can also select BMP or TGA if you like. Now, you can simply click next and finish through the rest of this wizard. Open your AutoCAD, open plot dialog box. You should see your new plotter there!


Source: CAD Notes – How to: Get Hi Res Image from AutoCAD?
Go to Source: CAD Notes

Revit Architecture 2010: Grid Line Bubble Types

July 29, 2009 in AutoCAD, CAD

Revit Architecture 2010: Grid Line Bubble Types

Hey All.  I just got a question about grid lines and being able to choose where the bubble appears.  By default, within the Element Properties dialog box of a 1/4″ grid bubble type, the Plan View Symbols End 1 (Default) is turned on while the Plan View Symbols End 2 (Default) is turned off.  The [...]

Source: All About CAD – Revit Architecture 2010: Grid Line Bubble Types
Go to Source: All About CAD

3ds Max 2010: Containers

July 23, 2009 in AutoCAD, CAD

3ds Max 2010

Hey all.  Sorry for the loooong delay in posts.  I really don’t have an excuse, so I’ll just get into this post.  Last week I taught the new feature in 3ds Max 2010 called containers.  I really like this new feature but I’m not sure if I agree that much with it’s implementation.  Containers, I [...]

Source: All About CAD – 3ds Max 2010: Containers
Go to Source: All About CAD

Updates to Revit Architecture + Revit MEP

July 18, 2009 in AutoCAD, CAD


Autodesk Revit

Autodesk has just announced that updates are available to download for Revit Architecture 2010 and Revit MEP 2010 from their website.

For more information, or to download the updates, click here for Revit Architecture 2010 or click here for Revit MEP 2010.

Source: All About CAD – Updates to Revit Architecture + Revit MEP
Go to Source: All About CAD