AutoCAD Civil 3D :: Export Blocks INSIDE Of Another DWG?
Aug 13, 2013
Is there any way to export blocks INSIDE of another dwg?
Background info:
At my company, we have a series of template .dwgs that get copied every time a new project is created. We update the template files as we create new blocks, styles, etc...
When I'm working in a specific project and create a useful block, it would be nice to export that into the template file without having to open the template drawing and insert/redefine it.
I've made annotative blocks and I've made dynamic blocks... My intent is to integrate both but I can't find a way to move dynamic block parameters separately at different annotative scales.
In other words, if I insert an annotative dimension and add multiple scales I can move the dimension grips independently at each scale. If I insert a dynamic block I want to be able to use the dynamic block's action "grips" to do the same. However, with a dynamic block, if I move a stretch action at one annotation scale it moves the action at all annotation scales.
At each projects, i need to copy and paste the values of attributes of all instances of a type of block in my drawings, paste them in a excel sheet, it take so much time and is possible to make errors.
Is there hints to read a DWG as a text file and retrieve the attributes values of all these blocks ? I would give special names to these blocks, and also specific quantity of attributes, to work.
I meant Excel VBA, not AutoCAD VBA, cause i will manipulate excel sheets depending on the results.
I am asking the user to select points and insert a block at each of the selected points. On user exit from the point selection I draw a polyline connecting the blocks.
However, I cannot get the already inserted blocks to display until I complete the insertion of all blocks. How do I go about getting them to display as soon as they are inserted? The code segment below is inside a transaction and nothing appears on the screen till this transaction is committed' Pt(0 to 2) is defined as a double and is returned when the user selects a point with function
SelectPoint Do While SelectPoint(Pt) = True Dim MyPoint3D As New Point3d(Pt(0), Pt(1), Pt(2)) InsertBlockAtPoint(MyPoint3D, myTransManager, strBID, _ myBlockTable, CurrentBlockSpace, dwg, True)' strBID is a previously populated structure containing data about the block insertion details and Xdata to be added to the block reference Dim MyPolyPoint3D As New Point3d(Pt(0), Pt(1), 0) myPoints.Add(MyPolyPoint3D)' myPoints is a data set used to plot the polyline
Is there a way to put constraints on text and a rectangle? I'm trying to make a block so if i change the text the rectangle around it grows automatically. I know it's simple enough to just manually extend it but one of my engineers asked me to try and create this for him and i can figure it out.
I wanted to flatten arcs, circles and lines inside a block using the following lisp (which I found in this forum). I found that sometimes this lisp is unable to flatten the ARCs inside the blocks. I do not understand why it is not working for all the blocks. I have attached a drawing in which this lisp is not working.
I've made this block . when i rotate the vertical line I need to add lines every 15° as you see in the image, i've seen that polar array is not possible in the dynamic blocks.
There are many examples of creating rectangular patterns, but not many, if any, of interrogating existing patterns.I have attached the files and a screenshot of a rectangular part inside an assembly. The part contains a rectangular pattern of holes and workplanes.how do I get hold of each proxy of the workplane in the pattern?In other words I don't know what to put in the for loop at the end of this code fragment:
If _invApp.Documents.Count = 0 Then MsgBox("Need to open an the assembly document") ReturnEnd If If _invApp.ActiveDocument.DocumentType <> DocumentTypeEnum.kAssemblyDocumentObject Then MsgBox("Need to have an Assembly document active") ReturnEnd If Dim asmDoc As Assembly Document asmDoc = _invApp.ActiveDocument Dim asmDef As AssemblyComponentDefinition asmDef = asmDoc.ComponentDefinition im occurrences As ComponentOccurrencesoccurrences. [code]....
Seems like Multi-View Blocks are like that hot red-head in high school that you really want to get to know until you get to know them.
I made a bunch of blocks for my electrical plans. Annotative symbols for plan view, 3D blocks for model view, and elevation blocks for elevations. I then started creating the MVBs.
Upon insertion the annotative blocks appear super small and the model view blocks scale way up. The model view blocks are not annotative and are not supposed to scale at all. It seems MVBs see any block inside that is annotative as an indication that the entire MVB shall be annotative. Fustrated, I finally found a work-around that is a bit half-arsed:
I made another block as a sort of holder for the annotative symbols that was set to not be annotative and inserted that into the MVB. VOILA! the MVB itself doesn't scale, but the annotative symbol inside the non-annotative block does. This works fine except for one caveat: I can't edit attributes that are in blocks inside of blocks. If I made another block to use in the MVB for the attributes, it would work, so long as I don't make it annotative, which isn't what I want.
So, A) is there a better work-around than the block-in-a-block-in-a-multi-view-block method, or B) Is there a way to access and edit attribute data of sub-blocks inside a MVB?
Maybe my next thread will be about red-headed Multi-View Blocks with carpets that match the drapes.
I don't give the right keywords with Google !?So from a classic selection (or ALL for ALL Blocks of the DWG) of entities,
we will keep ONLY blocks (Static or Dynamic)I am looking for a Lisp/VLisp routine to update all Color of Hatches inside Blocks when the Hatch Color is xxx If the color hatch is NOT XXX we don't update !
The problem : update all hatch from blocks where Color = 255 (or any other value)
---> other classic Color (1-256) --> RGB Color 255,255,255 or any other
I don't know at all how to switch hatch entities from classic color to RGB color inside a Block..And dynamic block in Lisp/VLisp are far from my level 0.2 in Lisp ...
I need a lisp code to burst all "blocks with text/attributes inside" in selected area. That means user should select an area (window selection) and lisp program should be find all blocks with TEXT or ATTRIB inside in selected area and then applys "BURST express tools" command to all these blocks in the selected area by user.
In AutoCAD, when I want to create a 2D block representation, I used the flat shot command. Is there a workflow that will result in creating a 2D block for ACAD from an assembly in IV?
FYI, my customer would like a 2D block representation to insert into his ACAD prints. My assembly is very complex. I tried exporting to .dwg and then opening the file in ACAD and creating flatshots, but it bogged ACAD to a screeching halt.
I have questions about exporting data for drawings.We make use of spaces to create a list with room numbers, room use and the area.
we also create plans with office furniture.we have blocks with attributes to extract data like workstation numbers, department, roomnumbers etc.for the info from the spaces we use export property data to create an database file.for the export of the attributes we use dataextraction to crete an .xls file
Is there a way to combine the work so that we can export the attribute data with the export property data?Is there a way to link the blocks (who are within a closed pline) to the pline (space)? Can it be done with lisp or VBA?
I encounter problems to organize my work. I don't understand some actual C3D behaviors. Every time I open C3D I have :
- An empty drawing1 I always have to delete .... ???????????
- Automatic last survey working folder open. Ok, it is well.
- All the drawing templates I need, Ok . it is well.
I have to open manually my drawing / drawings. In case I have to open more than 1 file (and they have to be placed at the same folder....), C3D open all of them (regardless of whether it be neccesary....) . So I have to wait and see how flies fly ..It seems that Vault can be a solution. Basic Vault can't be used inside prospector (This is what C3D says...)
Imagine I'm working with 3 or 4 projects. Every time I have to work with one of them, have I to do a stupid work (open and set folders) that can be produce errors and problems ? I have to create a VBA dialog to make this work.....
I was wondering if there is a way to export or save an assembly drawing to .dwg format (that can be opened by cad or acad mechanical) in such a way that all the parts of the assembly are exported as individual blocks (within the same file) To explain- lets say I have a .i am out of which I create a drawing (.dwg for inventor). Then I export or save this as acad dwg. This acad dwg should have all parts of the assemblies as blocks so that if I want to work on a particular part in the 2d environment of acad, that is possible.
Any script or trick that enables a user to export autocad blocks as a symbol in illustrator?. this would save a great deal of copy paste time. if one changes a symbol say a set of dining tables in illustrator all its instances would change accordingly!!
I'm modeling a couple different alternatives, and I want to make an inside mask on EG where my FG surface will be.
Is my workflow the problem, or are surface masks just buggy?
I've created three EG surfaces, EG-1, EG-2, and EG-3. I pasted the dref'd EG into each one, so now I have three copies of EG, one for each design option. Each surface is on its own layer.
I have three FG surfaces, one for each design, FG-1, FG-2, FG-3. I want to use the outer border of each FG in turn to make an inside mask for its respective EG surface. I can make one, masking FG-1 out of EG-1. When I move on and try to make the mask for FG-2 to mask EG-2, no mask is created. Is it not working because I pasted the same original EG into each of the three EG option surfaces? Do I need to promote the original dref'd EG and copy it two more times, so each mask is applied to a completely unique surface?
I'm working in Civil 3D 2012 and I have an alignment going through 3 DI's and a MH. When I say to draw this in profile view the pipes end inside the DI sometimes. Not at the middle but inside it even though my DI has a near 0 wall and floor thickness. The place where the pipe ends is where the edge of the DI should be but it is being shown outside that for some reason. What can I do? I inserted an image. The piece that I drew that is supposed to be a DI in profile view is rotated wrong.
I have a need to find the lowest elevation inside of a small rectangular polygon (6'x7'), then assign the polygon to that elevation. This is fairly easily done manually with feature lines, however I need to repeat the operation about 3,000 times to create a design grid (therefore, not obliged to using all of the design budget to do so).
I employed the GIS department to run the analysis, which they can do, however they can't rotate the DEM grid output to match my project because it doesn't run parallel to north/south, thus skewing the results.
I have created a breakline from a feature line which cuts the triangles of my surface. Is there any way to create a seperate surface from the triangles inside the breakline.
I am currently trying to produce a canalisation system for a sanitary sewer. Trying to add my structure, I find myself unable to specify a specific inside diameter for the structure (the smaller listed being 1 200 mm, whilst mine is 900 mm).
I´m trying to write a script to convert all the blocks in a drawing to mass elements and export them to IGES thereafter.
I would like to select everything first. Then launch refedit and select all the blocks.
After that I would like to convert them to mass elements. When saving to IGES I would need to select everything again.
I pieced the following script together, but it fails. I think it is bexause of the request to select objects manually. Could I add a delay which would enable me to select an object?
Also it looks like ACADA is not accepting the "all" command when pselect is called by a script.
--- PICKFIRST 1 select All efedit OK
A N _AecMassElementConvert ALL _REFCLOSE _SAV _EXPORT all ---
How to create a lisp to automatically export attributes from selected blocks to defined txt file without having to everytime confirm the file name, location and if the file shall be replaced?
Meaning is that I often export attributes to txt file for further use. It is always the same file (I just overwrite it always).
The way I do it now is selecting blocks, using ATTOUT command, then going to the desktop, selecting ATT.txt file and confirming that it is to be replaced.
Is there a way to make lisp or script that will just do all it in at once?
I found on forum such a lisp as below, but it exports all ablocks on drawing and it exports to txt file which is located in same place as drawing and with same name as drawing. Tried to modify it but without success:
When creating cross section views ("Home>Section Views>Create Multiple Views"), my sections are being placed at the exact boundary of the viewport (viewport is per my template).
Surely there's a way to create a margin inside the viewport.
Here's a screen shot of what I'm seeing. Notice how the dotted "Plot Area Boundary line is going right thru the left axis labels and on top of the bottom axis blue line (which means the bottom axis labels will NOT be seen).