I've been putting up with this problem for a while. I have a certified 3D device with a driver version that is certified (Quadro 4000) but the active viewport boundary highlight is out of place. The white lines in this image are my viewport boundary highlight which is out of position. This only seems to happen when I turn off the viewport layer. If the viewport layer is on the highlight appears as expected.
Windows 7 Professional 64-bit - Service Pack 1 Intel﴾R﴿ Core﴾TM﴿ i7-3820 CPU 3.60GHz; 16 GB DDR3 Dual Channel RAM nVidia Quadro 4000; AutoCAD Civil 3D 2013, sp1
How you can keep constraints active in sub assemblies so that when I am moving a subassembly the extra movement say in a transitional constraint is able to move so I can see if the total movement allowed is to much?
We are using this code for Page setup. But We don,t know how to make this page setup current and active. (defun c:pgs ()(acet-error-init(list(list"cmdecho"0"osmode" 0)T))(vl-load-com)(setvar "Tilemode" 0)(vla-Add (vla-get-PlotConfigurations (vla-get-ActiveDocument (vlax-get-acad-object))) "A1" :vlax-false)(vla-put-PageSetupOverridesTemplateFile (vla-get-files (vla-get-preferences (vlax-get-acad-object))) "A1")(setq item (vla-Item (vla-get-PlotConfigurations (vla-get-ActiveDocument [code]........
Since Edge only has rectangles and ellipses built in as available shapes, how to I/we work with polygon shapes and active mouseover areas INSIDE of these shapes and non-active mouseover areas OUTSIDE of the shapes?
Problem/symptom: when I import a polygon, be it any file format from from Photoshop or SVG from Illustrator, a rectangular border/background (transparent) gets applied, leading to this rectangle defining the mouseover area of the shape - and not the shape itself (be it a star or whatever).
WHAT I WANT: the very shape defines the mouseover area. How do I achieve this?? See examle below:
how to make a layer or an entity transparent within a viewport?
I figured out the following code found in:
[URL]
It gives an error at New Autodesk.AutoCAD.Colors.Transparency(127)
Using transactie AsTransaction = DWG.TransactionManager.StartTransaction Dim Layertable AsLayerTable = DWG.LayerTableId.GetObject(OpenMode.ForRead) Dim VP AsViewport = transactie.GetObject(Doc.Editor.CurrentViewportObjectId, OpenMode.ForWrite) Dim LVPO AsLayerViewportProperties ForEach LayerID In Layertable
So I'm learning about the whole new world of options with using imported .shp files in CAD and I'm unable to find a way to make a .shp file invisible in a viewport. I know I'm very close to it as there are a bunch of new contexual tabs that pop up when I select the .shp objects. It just seems that the layer control for traditional CAD does not apply through the MAPWSPACE toolspace window.
Civil 3D 2012 Windows 7 Enterprise SP1 Dell Precision T3400 (Q9550 @ 2.83 GHz) 8GB RAM Nvidia Quadro GTX 650 Ti BOOST
Am trying to use millimeters for the first time. In model space, I set UNITS to millimeters. I draw a 5 unit line. No problem. I go to a layout tab and the viewport shows a 5" line, using a 1:1 scale. How do I make the viewport show a true 5mm line? If I choose inches as my units, the viewport scale is true 1:1 scale
I am having issues with creating viewports in the attached file. When I open the layout, say layout 3, it shows the viewport frame but I cannot highlight it in order to delete it. This is a setting in this file I have inadvertently turned on or off. I have created a new file, done a scribble, opened a layout and deleted the viewport.
I have an xref in my drawing. I am trying to use a VP override to make a layer plot with a lighter lineweight. I have changed the layer to number 9 (set to plot light) in the viewport and the layer changes color. When plotting the layer does not plot with the correct lineweight. The object color on the layer is set to bylayer. Visretain is set to "1" What is wrong? Why isn't the layer plotting correctly?
Problem: When I create a new viewport, another viewport's paperspace blanks out or disappears. When I copy a viewport over, the new VP doesn't show anything and you can't maximize/"enter" its paperspace; it's like a simple rectangle, but the properties box says it is indeed a viewport.
Ex. Viewport 1 shows the top view of an object, Viewport 2 shows the right side view... as soon as I add Viewport 3, the top view in VP 1 blacks out. I attempt to ReDraw, Regenerate, etc, but it doesn't re-appear. I've run Plot Preview to see if maybe it's just a fluke with the graphics card on my screen, but alas, even in plot preview the viewport is blanked out.
It almost seems like there is a limited number of viewports I can use.
Solution: Run the MaxActVP command and set the value to a number greater than the number of VPs you actually need. This particular file had that value set at 2; hence, why a new, third VP blanked out the first one.
I have a drawing with a viewport that fits to the page. And I created another smaller viewport over top that just shows the legend. Now when I try to double click inside the smaller viewport it always goes into the larger one. I have tried bringing the smaller one to the front but that didn't work. I know that I can clip the larger viewport around the smaller one or bring the legend right into paperspace or slid the smaller one off to the side work in it and slide it back. This is more out of curiosity of how to get into the smaller viewport.
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?
I did a test drawing with 4 viewports in paperspace.I frozen a layer in each viewport (as a viewport override, not global), and wrote code to gather info on layer overrides in viewports.The function takes in a database, and is generally used on drawings only open in memory:
the odd thing is it never finds the frozen viewports on the first viewport. It catches the others fine.I cannot see anything odd either, the counts of viewports and layers are all correct, and the drawing has no problems.Is there something that must be done to initialize the mechanism that reads viewport overrides?
I encounter a problem that I do not understand. I created a little C# routine for Autocad Electrical (2011 and 2012) which adds some drawings to the current project with the following command:
(c:ace_add_dwg_to_project dwg2add paramlst)
This method works perfectly. With the parameter list you can set the Section, Sub-Section and Descriptions of the page properties, exactly what I want. When I start the routine, I check which project is active. If the wrong project is active, I activate the appropiate project with the following command:
(c:wd_makeproj_current wdpfnam)
So, when I want to add drawings to project A and project B is active at the start of the routine, I activate project A and the drawings are added. When I want to add drawings to project A and this project is already active, the drawings are not added to the project. The method mentioned above to add drawings returns nill, which means a failure.
Why is this happening? Is this a bug of Autocad?I already tried to always activate the project I want to add drawings to, but that doesn't matter.
When an macro of a Lisp is active I can zoom and pan in a drawing. I press Escape to quit.Why can't I do that when a form is active in vba? Is that only because Showmodal is on?
I think it's quite a lot of useless work to always select objects before or during a command, if you manipulate the same set of objects over a longer period of time. Say, as an architect I have a floor plan with a table and chairs. Now I want to copy, translate, rotate and scale the table with the chairs until they fit my floor plan. So I have to select the furniture, copy it, select it again, move it, select it again, rotate it, select it again and then scale it. Of course, there is the "previous" option, but is there a way of keeping a selection set active after the command so you just can go on to the next command without re-selecting the whole thing? My favoured workflow would be: Select the objects, copy them, move them, rotate them, then scale them. The objects should be active all the time and deactivated with ESC after the manipulation.
it errors with an elock violation, even though I lock the document with dwg1DOC.LockDocument before I try to save and unlock it after.
The same code runs fine on the current document so at this time I just ended making the other document current just to save it then switch back to previously current document.
What am I missing to save a document that is open but not current?
I have several closed ployline shapes in a particular layer, I need to know a way to:
a) pick all the entites on that layer
b) export to a dxf file each individual entity on the layer (yes, each entity saved to a separate dxf)
I am almost positive I can answer 'a' on my own using an object collection and a conditional statement? I am really more interested in how to export an entity from current open drawing to a dxf file in .net