AutoCad :: Modify Existing Viewport In Macro Or In Command Line?
Jun 4, 2013
Can I modify an existing viewport in a macro or in the command line?
Using a macro, I want to modify (specifically delete) the viewport from a layout tab after chspace from model space.
I have LT so no LISP. qselect works but cannot be put into a macro.
If I "select all" on a layout tab in paperspace ACAD says 1 of the objects selected is the viewport so I know autocad recognizes the viewport as a different kind of object.
Basically I got a process which is quite long , let's say 30 seconds.
I want put a counter at command line showing to
user how many objects has been processed so far. But I don't want to use New Line Feed to change the line and keep each new number at same line and same location of command line.
I'd like to change a layer's color from command line because of a user icon. I figured out from previous topics that I should use macro similar to this: ^C^C_filedia;0;-la;s;Verdeckt (ISO);c;1;l;dashed;;_filedia;1;re;
(I want to use this macro to change layer's linetype, too, but that's not the point)
The only problem with this macro: layer's name contains a space therefore Autocad tries to recognize Verdeckt as a command (and macro interrupts there) instead of setting Verdeckt (ISO) as the current layer. I've tried using different quote marks, none of them worked (' and " and <>). I hope there's a method for entering a parameter that contains space.
Software: Inventor Series 2011 SP1 x64 OS: Vista Business x64 CPU: E6400 RAM: 2*2Gb GeIL VGA: Quadro FX 550
I am wanting to insert a second viewport over an existing viewport and have the information in the existing viewport behind the second viewport and not seen. I want the second viewport boundary to be the "trimming" edge of the existing viewport. How do I do this?
When working in a paperspace layout I am not able to move or re-size the default viewport. Upon selecting the viewport and attempting to move it I receive the following command line message: "1 was not in the working set." The viewport appears to be fixed and non-editible. What does the message mean? Would putting the viewport in the working set make it editable, and if so, how is this done?
There is a default viewport in Layout1. How can I reposition and resize it on the paper? It would also be sufficient if I could delete it--how do I do that? (then I could create one that fit my needs)
Briefly, what are disadvantages of not using Model view?
I've got several assemblys built for a road project. the problem is whenever i modify an assembly by adding a subassemby, some of the existing subassemblies move. they stay attached to the assembly but they disconnect from the part they were attached to. i can move them back so the assembly looks correct but when i rebuild the corridor chances are they show up wrong. i've tried 'move to' and just grabbing and snapping. i can eventually get it attached but not without trial and error. i'm running c3d2012.
Dell Studio XPS 9100 Intel Core i7 CPU 930 @ 2.8GHz 12GB Ram 64 bit C3D 2012 SP3.0
I am using Coreldraw but in the past I have been able to create the following Macro to do the following
(1) open a file called C:ArtworkC67PSML.cdr (2) change the text in one field from "Recorded in Ireland" to "Recorded in China" (3) remove all guideline fields (4) export the cdr to pdf format and save as new file C:Artwork2C67PSML.pdf
But I would very much like to be able to run the macro on all CDR files in the c:/Artwork folder, how I could amend my code (shown below) to do this ?
Sub Rings() Dim doc1 As Document Set doc1 = OpenDocument("C:ArtworkC67PSML.cdr") Call TextTranslate ActivePage.Layers("Guidelines").Editable = True ActivePage.Layers("Guidelines").Shapes.All.CreateSelection ActiveSelection.Delete ActivePage.Layers("Guidelines").Activate [Code] ......
I would like to modify the Quality setting shown in the "Shaded viewport options" section of the plot dialog box (see attachment). The default appears to be Normal, and the options are Draft, Preview, Normal, Presentation, Maximum, and Custom. I want to use Maximum for 11x17 PDF files but I have 1000's. I can't open each file and change the setting, and then Apply to Layout. I'd also like to know what "Custom" means, but I will settle for maximum for now.
Is this option available under PlotSettings somewhere?
how Inventor Materials are used in your companies, what is your customization level and usage level.Do you use Inventor Materials as they come out of the box ?Do you create your own materials?
Do you modify the properties of existing Inventor materials without changing the material name?Do you show material names on 2D drawings (in parts list etc)?
I have several existing block definitions and need to change the insertion point. Also, when creating a new block in the Block Editor, how do I define the insertion point?
I'm trying to create button with macro to edit existing text in place, with predefined text with macro .... For example, existing text is "Old text", and I want this text (or whatever I select) to edit in place with click on macro button to change it to "New text".
I've drawn a hollow ellipse shape (shape layer). I would like to remove the bottom half of the ellipse shape so that I am left with a parabola shape.
I've tried creating two shape layers and combining them in such a way as to subtract out the bottom half of the original ellipse but I am obviously doing it wrong.
how to select and modify an EXISTING rectangle (not create a new one)? I drew a rectangle with rounded corners, and now I would like to modify the radius of the corners.
I've tried using the Rectangle Select tool to reselect the existing rectangle, but Gimp only lets me create a new rectangle.
I downloaded a resume & cover letter template and I am not able to figure out how to delete information and modify existing information to customize these documents.
For example, I'm making revisions to a plan and drag a block or xref of the floor plan changes where walls/doors/windows have moved. I want to be able to simply pick the underlying linework as opposed to tracing over each line of said xref/block.
I have keyboard commands set up for exporting my .idw drawings to .pdf format (PD for me.) I would also like to set this up for exporting my drawing to .dxf format. I think this can be done with a macro that can be activated by a keyboard command, but I could be wrong. I don't want to do this with an iLogic.
Create a command (macro) to unlock all locked layers and remove the fade effect. I know how to unlock them by using the command LAYULK, selecting the entities on the locked layer. I have been trying to automate the command so I don't have to select entities.
"Open the .idw that you created your title block in. Locate and right click on your title block in "drawing resources". Select copy. Open the file that you want to put your title block in. Right click on "drawing resources" and paste your title block there. Now you will have to delete their title block and then activate yours. "
I want to change my drawing template and I have many to do and it must have somewhere somehow a way to do this automatically?
As often done in mechanical drawings, a circle is drawn around a detail in the main drawing, and the detail is displayed somewhere else on the drawing on a larger scale.
My detail is the small rectangle in the upper right corner of the larger rectangle. I have also drawn a dash-dot-dot circle object around that corner to designate the detail-area.
In layout 1 the top left viewport displays the "whole" drawing. I also created a circular viewport to display the detail on a larger scale.
In the circular viewport, I used zoom-to-object (and selected the dash-dot-dot circle). The result is visible :both circles (object & viewport) are still visible, and they are not concentric too.
I thought the zoom command would have zoomed until both circles overlapped eachother and were concentric...
I press CTRL+9 to make the Command Line disappear while drawing. When I plot (or when doing a plot preview) , the Command Line appears again by itself. So I always have to turn the Command Line off manually after each plot
The bug still happens;
- if Dynamic Input is turned off or on - if I plot to a real device or in PDF - if the Cammand Line Palette i docked or floating.
This is not an issue in AutoCAD 2012 so I guess it has to do with the new way they programmed the revamped Command Line palette in 2013.
I have a macro that automatically creates a Detailed view on a sheet. It works on 2 input's:
- mouse click 1 (set's the target to be detailed)
- mouse click 2 (set's the location where the balloon should be)
The code works fine. But sometimes the user will start another command, or restart the same command, while it is still running. This off course gives all kinds of problems.
Is there a possibility in VBA to prevent the user to start another command while this command is running?Or is this problem a part of the clicking itself?
Here is my (it uses a Class Module called: clsGetPoint, see code below) Sub AutoDetailedView() On Error GoTo ErrorManagment '(error handling 2013/02/18) 'step 0 Create a transaction. -> for 1 undo command Dim oTransMgr As TransactionManager Set oTransMgr = ThisApplication.TransactionManager Dim oTrans As Transaction Set oTrans = oTransMgr.StartTransaction(ThisApplication.ActiveDocument, "AutoDetailedView") 'step 1 Select a drawingView 'Set a reference to the drawing document. Dim oDrawDoc As DrawingDocument Set oDrawDoc = ThisApplication.ActiveDocument 'Set a reference to the active sheet. [code].....
without reiterating a lot of what is said in this thread: [URL] ......
This happen outside the potential malware infection?
if you care to not click-through, the problem is that certain commands (not all of them) simply do not disply in the command line. so the MOVE command for example looks like this:
In the current drawing I am working in, when I copy a viewport using CO command it copies the viewport but nothing is seen in it. You cannot active it like a normal viewport; it turns into just a square. I do not have this problem in any of my drawings, just this one. If I copy the viewport by right clicking copy with a base point then paste it in the drawing, the viewport works fine. This is more time consuming then just using the CO command.