How to change the dim text color in current dimstyle with a lisp routine? I want to modify current dimstyle instead of override current dimstyle, so it can change all existing dim text color under the current dimstyle.
Is there a macro/script/deisel that will automatically print a pdf (cute pdf autocad lt 2007) to current plot settings in current drawing directory and give it the current drawing view name and number? Disk space not a problem these days and would save time to have a pdf copy of all drawing tabs readily stored in the directory ready for issue.
I am trying to write a quick macro to open the current drawing in the block editor. I can easily do the steps from the dialog box to open the current drawing, but the command line version give me an error.
Command: -bedit Enter block name or [?]: <current drawing>
(A message box pops up saying, "The name cannot be longer than 255 characters."
If I click ok on the message box, AutoCAD returns to model space. The file name is 30 +/- characters, and the path is maybe another 50 to 100 characters. Can I bedit the current drawing using the command line, or must I use the dialog box?
I am writing a program acts on the current drawing by using data in the SSM. If the current drawing is found to be a member of a sheet set (using sysvar SSFOUND) it cycles through all the sheet in the sheet set looking for a sheet entry that matches. Sometimes a match is not found because the layout name in the SSM does not match the layout name in the current tab (sysvar CTAB). Is there a more directly way...and one that works? I just need a reliable way to get the AcSmSheet object the correlates to the current drawing.
Private Sub UserForm_Initialize() Dim layerColl As AcadLayers Dim entry As AcadLayer Dim LayList As String Set layerColl = ThisDrawing.Layers For Each entry In layerColl ComboBox1.AddItem entry.Name Next End Sub
I have a form with a combobox. That combobox is filled up with all layers in a drawing. (see above)
Now I want to make the layer that I have selected (value) in the combobox the current layer in my drawing.
I need simple code to do just one thing, inserting a dynamic block that is stored in a separate file on my computer (like C:/base/b-22) in the drawing that I'm currently using. For example, I have a windows form with a list box with names of many dynamic blocks that are stored on my c drive, I would like to pick a block with a name and upon a click event of a button or other will go get this block from a separate file and insert it in the drawing I'm currently using, and would need to be able to pick the point of where I want the block to go. I'm using autocad 2010 with visual studio 2008- using the new autocad .net language.
I know you can "pull" styles from a drawing (maybe the template) into your current drawing.
Is there a way to "push" them from the current drawing to another on?
Here is what I am picturing:
Right click on a style on the settings tab and choose "Send to Template"
"Template" would either be a predefined DWT file or it would open a standard file selection dialog to select one.....and this would copy the selected style into the template.
I'm trying to automate an attribute extraction in the form of a table. I create the .dxe file but when I use this template file with -eattext (or -dataextraction), in a drawing different than the one the .dxe was created in, I still get the original table and not the one with the attribute values of the curent drawing.
When I set a layer as current, every object or line I select in the drawing appear to be on that layer in the toolbar. Although in the properties toolbox, I see that the line I selected is still on the right layer.
I can't work in paperspace either, when I freeze a layer it freezes all objects. It seems like whenever I give a different layer to an object, it attributes to all object that same layer.
When I open the same drawing in acad 2008, everything is ok, the objects have the proper layers.
Is there a command for that or it's an acad 2013 problem?
i have a for example a block with one attribute and would like add a new attribute. i´m trying to read the current block and redefine - it comes a new attribute in propertieswindow but not graphical.
how to write a field that will add or subtract one from the drawing number. I'm adding drawing join line text to drawings so I need the text on the left to read one less than the current drawing & text to the right to read one more.
in drawing 005 text would read "joins drawing 004" & "joins drawing 006"
I have been trying to use the tcase command to change text case on a current drawing. some of the text is listed in properties with :A1 and various other squares and ( etc .). Any way to change this text. When I try exploding it and changing to mtext the fractions and all parts of the text is exploded as well.
i have this drawing which i created data reference to the wrong project in the wrong coordinate system and worked off that. then now i am trying to correct it. so i copied the dtm and did coordinate transformation and got that right. now the model drawing is still linked to the original dtm from the other project folder.
if i remember right back in 2007 version there was a completely built in shortcut editor which allows you to change the path in current drawing. now it's all greyed out. there is no access. so is there a way to bypass this? probably pretty common thing to do. say you want to try different version of the same object to try your design just swap it back and forth.
They should make a right click button on the data shorts in current drawing and says "browse data reference" not show up when only broken reference occurs.
one way i can think off now is copy the files to local. disable network drive, then let it broken reference show up then browse to desktop one then delete desktop one and hopefully it get the broken reference again and not look for the very original one. i think it's probably gonna do that, there is some "hidden" thing stored in the object to point to the original path which not available to users.
Civil 3D 2012 Work: Xeon W3503, 12GB, Quadro 2000, Dell P2211H x 2 Home: 3930k, 12GB, GTX 590, U3011, QX2710
Is there a quick command that lists all current frozen layers in your drawing? I am using Autocad 2012. We recently switched from 2006 in which the quick command YT would show all frozen layers and allow you the option to thaw them. We were using ArchT so Im not sure if that was something associated with that.
I am unable to fill objects with any sort of hatch in my current drawing. Other drawings are fine, but in this one, nothing will hatch, either form the tool palettes option or from the hatch menu.
Autocad 2013 Data Extraction works if I do not include attached xrefs and set it to "Select objects in current drawing". When I check "Extract objects from xrefs"; and go to next it processes for a bit then stays on page 2 of 8 on the Define Data Source page. Also have the same error if I choose " Drawings/Sheet set" with or without the xref objects included.
How to create lisp which i can simply type in to the command bar so that the current drawing's filepath-folder will be automatically opened by windows explorer?
Technique that can check the current plotter name for the current tab and assign it to a variable? i.e. can it be assigned to a variable to check if if equals "myplotter1". The next step - is there a technique to change the plotter name to "myplotter2.pc3".
I have partially done the latter part of this in the past using the -plot command line to ASSIGN a new plotter but I would really like to only run the routine if it really needs to.