AutoCAD .NET :: Draw A Border Around All Entities In Drawing
Jun 21, 2013
I am trying to make a button such that if the user clicks it, AutoCAD will automatically draw a border that just includes all entities in the drawing.(Something) like the viewport border in the paper space)
Approach #1: The first approach could be zoom extent and draw a border around the zoomed view. how to zoom extent and draw a polyline, but can't figure out the exact size of zoomed view.
Approach #2 (optimal) : If the entity is a right circle and my AutoCAD window is not in square shape (for example, the AutoCAD window is maximized and my monitor is wide-screen monitor), Approach #1 will create redundant spaces at the right and left side of the circle entity. So if I could get the grid coordinate of far left, far right, top, and bottom entities, I can draw the optimal border around all entities in the drawing.
View 9 Replies
ADVERTISEMENT
Jun 28, 2013
I continue learning....
(setq ins (vlax-ename->vla-object ( ssname sele cod)) nombre (vla-get-name ins) ) (setq bloque1 (vla-item (vla-get-Blocks (vla-get-Document ins) ) nombre ) ) (setq s_ent1 (vla-item bloque1 1)) (setq pt1 (vla-get-startpoint s_ent1 ))(setq pt2 (vla-get-endpoint s_ent11 ))(setq s_ent2 (vla-item bloque1 2)) (setq pt3 (vla-get-startpoint s_ent2 ))(setq pt4 (vla-get-endpoint s_ent2 ))(command "_pline" pt1 pt2 pt3 pt4 "c")
Why dont draw de _pline?
View 4 Replies
View Related
Nov 11, 2012
I have a drawing that has a white background.
I would like to add more to the white background to make it bigger without having to stretch it and distort the image.
I want to place a circle shaped outline border around the original image with a set border thickness and color and be able to crop/remove the portion of the image beyond the outline, changing it from a square/rectangle image to a circular image.
If I am not able to change the drawing to have a round outer border from square, how can I make the outer parts past the newly created circular outline transparent?
View 6 Replies
View Related
Aug 23, 2008
Just a follow up to the inquiry on the Flatten command. Is there a way to use set all entities in a drawing to elevation 0? like moving them all to Z=0 like the flatten command but all entities in one command including blocks, hatches, etc.
View 9 Replies
View Related
Aug 28, 2012
How to make the process of manually drawing a boundary around a topo so that you can add it as a boundary in a C3D surface? Sometimes the topo's we recieve already has a boundary in it, but often, there is not. So we have to manually draw a polyline around the whole extent of the topo, which can take a long time.
View 9 Replies
View Related
Jan 9, 2012
how could i draw any viewport's border line in layouts, if i do not want to use predefined rectangle,
View 9 Replies
View Related
Sep 3, 2013
I recently received an autocad drawing with a number proxy entities in it. They exploded ok. However by exploding them am I losing any properties that may be useful. And what really are proxy entities?
View 7 Replies
View Related
Oct 26, 2012
I have a dxf file that consists of multiple rectangles (filled). I need to keep the X-Y position of each rectangle / entity the same but scale the size of the rectangle.
So for example, scale by -10%. If its a filled rectangle centered at (1,1) size (2,2) I need it to be centered at (1,1) and size (1.8, 1..
DXF is a text file and I can write a piece of VBA code to go through, decode the text, find the rectangles, scale, save the text file back to DXF.
View 1 Replies
View Related
Jun 28, 2011
I key in "Crtl A" and this selects ALL objects/entities that exist, however some of these objects/entities are not visible nor are they selectable. How can I run a "Crtl A" and once ALL objects/entities get highlighted and their grips are displayed .. How can i remove the ones that are outside of my drawing extents.
View 5 Replies
View Related
Jun 11, 2013
I have a command which proccess entities in the drawing and creates a SelectionSet. But, on the drawing i do not see the selected objects . I need to show grips on selected objects . It is a looks like a Quick Select command. What can i do? What method showing the grips?
View 2 Replies
View Related
Feb 22, 2013
I created a drawing where I created a grading object (pad) under a site, a couple of alignements, etc.
After deleting everything to maintain layer states and settings, I saved the drawing as a starting template for day to day drawing (left it as a dwg, not dwt)
When I start a new drawing from a saveas of the template, it says that there is already a grading group named 'pad' but there isn't anything shown in the prospector. Purge hasn't worked. Any ghost entities left in a drawing.
I've also noticed that if you screw up a grading and try to delete the entire site and start over...you get weird results too. It's like it remembers old stuff you did (ghost entities) and won't let you start with a clean slate.?
Infrastructure Design Suite 2013
Dell Precision T3600 - Windows 7 64-bit
NVIDIA Quadro 600
Intel(R) Xenon(R) CPU E5-1607 0 @ 3.00GHz 3.00GHz
8 GB ram - Two 1TB raid
View 7 Replies
View Related
Jun 11, 2012
im used to opening up two drawings simultaneously, and i used to drag & drop entities with one another but for some strange reason i cannot do this drag & drop thing anymore with my drawings, i tried to use ccleaner to clean up the clipboard, tried searching it here and googling it but still cannot find any clue.
View 6 Replies
View Related
Oct 2, 2011
I know through the block command you can write out a selection of entities to a single drawing.But what I am wondering is if it is possible to have two drawings open, and transfer data quickly between the two?
As an example as we are detailing an assembly we create a title block around a detail, put dimensions and notes on as needed and would then like that to be transfered into another drawing next to the previously transfered detail drawing.
View 9 Replies
View Related
Sep 20, 2012
I need to draw a simple medium size line border around a block of text and photo to set apart from the rest of the page.
View 6 Replies
View Related
Mar 10, 2012
I am trying to create a set of drawings to a standard and need to be able to create a border for them. I have tried creating a border in a layer, but it needs to be 5cm from the edge of the page.
View 1 Replies
View Related
Oct 24, 2011
Want to create a drawing border, a box on the right hand side containing all the information about the drawing. I want this to be a template so each drawing I create will have the drawing border on the right.
View 6 Replies
View Related
Jun 22, 2012
I am trying to find out if there is a way to print only the drawing border in color and everything inside the drawing in black.
View 5 Replies
View Related
May 16, 2012
I would like to add at the top of my drawing border the file path for that CAD drawing.
For example:
C:Documents And SettingsNameLocal SettingsTemporary Internet FilesContent.Outlook6MI84FY33435_M_56_01 - Heating Ground Floor
This is something that I have seen in my previous employers drawing sheets but I would now like to add one to my own sheet.
I have looked into Plot Stamp command but this just seems to give me options for the date or tab name and not where the drawing is saved.
View 9 Replies
View Related
Aug 10, 2012
I need some VBA code that will allow me to get the Filename from the border of a drawing. I've got code to get to the text of the filename, but I need to get the filename itself. Hope that males sense. Here's the
Public Sub GetModelFilename()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
[Code]...
What the code returns is the text <FILENAME>. What I need is the filename itself.
View 8 Replies
View Related
Feb 20, 2012
The company I work for produce drawings for various types of fabrication.
Using Inventor I have a drawing border in which tolerance values change depending on the type of fabrication to be produced. The type of fabrication (0,1,2,or 3) is designated by a custom property entered during part/fab model creation.
This property may change depending on various production factors. The issue I have is how do I get the border to recognize this potential change in fab type and populate the tolerance fields with the necessary information?
View 3 Replies
View Related
Jun 14, 2013
I have a 3D drawing of a phone, and there seems to be a reflection or glare covering it and it is really annoying.
The screen portion is supposed to be white, as well as the buttons. The border of the black section is gray, as is the edge of the phone.
View 2 Replies
View Related
Mar 5, 2013
I have 4 layouts all from the same drawing that I need desperately to print now. But for some reason only the border and Title block will print for me. What have I done to cause this? And how can I rectify it? I need to print these tonight
View 3 Replies
View Related
Jul 31, 2012
I'm having real difficulties getting my drawing borders to work between Inventor and AutoCAD. I am using Product Design Suite 2012.
I have created a drawing border using Inventor, which is the template for any drawings I produce. I often export the Inventor drawings into AutoCAD 2007 dwg's to send to customers. However, it seems all the text goes up the creek after the export...
When I open the exported AutoCAD drawing, first I explode the drawing border. Then, if I scale the border from within AutoCAD, none of the text wants to scale up. - I've attached the border. I've tried several different ways to fix it using text styles, heights (setting to 0) etc and still no luck!
How to fix the text scaling?!
View 1 Replies
View Related
Nov 13, 2013
What is the proper syntax for removing a bmp file inserted into a drawing border defintiion? I am using VB.net.
I got all the way into editing the sketch of my border defintion...
I know the name of the sketch image I want to delete it's something like "C:Temp12345678.bmp"
So I wanted to use the name to get the image file and set it to a variable. Then run the .Delete() command on that. But it's not working.
This is what I have, where oCSTicBorderDef is equal to the border defintiion of the active document..
Dim oSketch As DrawingSketch
oCSTicBorderDef.Edit(oSketch)
Dim strImageDirectory AsString
[Code].....
View 1 Replies
View Related
Nov 18, 2012
I haven't used AutoCAD for seven years and when I did use it, it was for mechanical engineering purposes. Now I am using AutoCAD LT for architectural reasons. I've signed up to my local night school to get back into things.
I am making a location plan for a planning permission application to the local authority. I bought a 4 hectare or so location plan from the Ordinance Survey. I've drawn in the location of the proposed building and changed the relevant site boundaries to red and blue.
Now I want to use two layout tabs with a drawing border at a scale of 1:1250 and 1:1500 respectively. The existing scales appear to be in imperial units.
How can I change this?
View 9 Replies
View Related
Nov 19, 2013
I am trying to draw a "u bolt" in an isometric drawing. I found one solution, that served the purpose of giving the customer the general idea of the stands we are trying to sell them, but I'd like to know if there is a way to draw it properly.
I have attached a pdf to show what I came up with. Pipe Stands.pdf The only way I could think to get it to work (look right) in isometric view was to draw to vertical lines, make an arc across them with the elipseisocircle, and then use the path array to fill the U shape with the isocircles. This keeps the tubular shape, and the number of circles resembles bolt threads.
My problem is that the u-bolt is only threaded on the ends, the arched part should be smooth. Since this u bolt is to clamp fiberglass pipe to the stand, those threads (in my drawing) could cause damage. In this instance, I just explained this in the email to the customer, but I'd like to find a way to draw it proper.
View 9 Replies
View Related
Oct 6, 2012
I would like to draw from the side, especially circles to extrude. see my pic below. my current view only allows to pull circles up etc. I don't want to rotate all the time.
how to you set this looking angle up?
drawing direction.fw.png
View 6 Replies
View Related
Nov 27, 2013
How to draw/ insert Cable Tray into my drawing somethings like that >>>Telecom Racks and Cable Trays-resized-600.jpg.png ? I'm using autocad 2012 !
View 8 Replies
View Related
Aug 23, 2012
Whenever i draw a new line, hatch etc - Autocad draws the object with a certain lineype. Then after i draw the line i have to manually click the line and set it's linetype to "By layer". It doesn't matter which layer i set as current, it never draws by layer, allways by this other linetype.
Using Cad 10 Architecture - But tried opening the file on other versions aswell, with the same result.
View 3 Replies
View Related
Sep 13, 2012
Sometimes, not in every drawing, but in certain drawings when we draw a spline it creates a jog or tail.
So when we do the command spline and click the start point then move to do the next point it will have this jog or tail at the beginning of the spline. sometimes we get it at the beginning and sometimes at the end.
How do I make it stop? is there a setting that I need to change? We typically work on drawings from Architect / Engineers.
View 9 Replies
View Related
Apr 8, 2010
I want to make the tooth profile of spur gear specially for sugar mill roller pinion which have big teeth.
View 2 Replies
View Related