AutoCAD .NET :: Creating Multiple Layouts Based On Form Input
Nov 3, 2011
I've been working on this code for a bit now and I've got a Windows Form with a numeric up down box which is designed to determine how many Layouts (PaperSpace) that a user would like generated.
I've got the form to pass the value as to the function as an argument but an not sure how to get the function to automatically generate "x" amount of Layouts based on the value of "int x". Right now i've just got a few "if" statements controlling the system, but i'm looking for a more elegant solution than a sea of "if" statements.
namespace CHPaperSpace
{
public class PaperSpace
{
[Autodesk.AutoCAD.Runtime.CommandMethod("CHPAPERSPACE")]
// This will be the function associated with my command
public void CHPAPERSPACECOMMAND(int x)
[code]........
View 5 Replies
ADVERTISEMENT
Feb 9, 2012
i developed a windows form based stand alone application in Vb.net 2010 that calculates all the geometry data needed for a Spur Gear ,my final goal is to send all Calculated data needed in Autocad 2012 and draw automatticly the Spur Gear.
At first i started to experiment my self with a simple only task (created a new project only for this) to draw 4 circles with the same center (radius1,2,3,4) in autocad with a simple click of the command button.
The code i used is the following (for 1circle) but it returned a error like this>> SendACommandToAutoCAD()-->>Could not load file or assembly 'Acmgd, Version=18.2.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.Runtime
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]....
View 3 Replies
View Related
Apr 25, 2013
I have an irregular shaped polyline in civil 3d that needs to be 31.5 acres. It is currently 32.8 acres. Without manually rescaling this polyline over and over again in order to achieve a polyline that represents 31.5 acres, can Civil 3D automatically draw the polyline to represent 31.5 acres for me?
View 9 Replies
View Related
Dec 14, 2013
The task should be similar to the _measure command but, I would like to divide the spline into lengths that I give in input. (Decided by user)
e.g. Length of spline: 10.000 meters
Place a block at length:
- 1238 m
- 2005 m
- 2018 m
- 2458 m
- 4098 m
and so on..
How I can do that? It would be perfect if it would be possible to give an excel file with the length values.
View 0 Replies
View Related
Oct 10, 2012
I developed a program in VBA that used a form to allow users to create new dwg files based on selected criteria the vba program would then create and open the new dwg file and in the case of sheet files, it would populate title block attributes as well.
In vba, the forms focus was carried to the new file so the application would fill in the attributes, etc. as described above,
However in vb.net, I have not been able to get the form to recognize the new file. The program creates and opens the file, however the forms focus is still on the initial file so any actions to be applied to the new file are not carried out.
View 3 Replies
View Related
May 29, 2013
I'm trying to create a pline in a dynamic block where the length is determined by two values I would input into properties or as attributes.
The first value 'A' will be a ground surface elevation
The second value 'B' will be a ground water elevation
I would like to the pline to have a length of A minus B.
I would then also like to have mtext (or any other method of display text) to display the values of A and B.
For example, if I have a ground surface of 102 and a ground water of 91, my line length will be 11, and I can display a label of '102' at the top of the line and '91' at the bottom of the line.
I've created dynamic blocks before, but none that have used an expression of two values or having to display inputted values. I'm not really sure where to start with this, or if it's even possible.
View 7 Replies
View Related
Mar 24, 2005
how do you do it using PHOTOSHOP?
View 1 Replies
View Related
Jun 8, 2011
Create a Form that can be sent to a customer as an email attachment. The customer must be able to Save and Open the Form with software that is available on most Windows computers. The customer should then be able to enter the requested information in the Form, Save the Form and then attach it to an email and return it to the sender.
I could achieve the above using MS Word. But it is a real pain to layout a complex Form using Word. I would much prefer to do this using DP6 as it is considerably easier to lay the Form out.
But... I simply cannot see a DP6 Export file-format that I could use to achieve this result.
View 9 Replies
View Related
Jan 24, 2012
I am creating a block with attributes for a standard job. I have (4) total attributes in this block (for example: panel type, qty, length in imperial, length in mertic)
I would like my length in metric attribute to automatically populate based on the input from length in imperial.
Is this possible?
View 1 Replies
View Related
Oct 21, 2011
Our company has lots of drawings/part-numbers that have anywhere from 2-9 sheets. These are all saved as individual .dwg files. I am looking to Xref the "extra" files in one main file and make layouts of those Xrefs for ease of plotting.
As we only have LT, we obviosly can't use the "Sheet Set Manager", and this is the best way I know how to do this. Is there a fast way of creating layouts (other than right clicking and selecting "Page Setup Manager"?
Or maybe I should say it this way: What do you thing is the best way of going about this venture.
View 9 Replies
View Related
Jan 4, 2013
I am trying to organize my drawing in model into different viewports for printing purposes. However, in Layout # 1, once I delete an item it also deletes the item in model space. In Layout # 2, can't edit, select, highlight or anything ( I am in Layer 0). How can I fix that ? Basically, I want to create several layouts, each layout will contain a certain section of my drawing in model space then. I am not "layout savvy", trying to get hang of it.
View 2 Replies
View Related
Jul 10, 2012
I created a 3d model, and is now trying to put the views on a layout. There seems to be something that causes the view to overlap itself. I have attached a screenshot of the model & layout respectively. On the layout the color members are the ones not supposed to be there. I have printed the layout, and the result is the same as the screenshot.
View 6 Replies
View Related
Aug 20, 2010
How do I print multiple layouts at once in the same file, like a batch print so i don't have to individually print each layout?
View 6 Replies
View Related
Feb 7, 2012
I have the drawings, which has 64 layouts each. I want to move the multiple layouts to one dwg (means one drawing should have 128 multiple layouts with in) At this that two drawings having layout only, i deleted all object in model space, model space would be the same for that two drawings, after i made the combined dwg. I tired to move the layout by using drag and drop on design center, It was not done. the autocad shows the message was fatal error: out of memory.
View 6 Replies
View Related
Nov 7, 2011
I'm trying to import a a custom titleblock into each existing layout from a dwg. So far, i've been successful in importing this block into the first layout but can't seem to figure how to bring it into the remaining. I have a command that runs before this one that allows the user to define how many layouts should exist, so for instance, if a user opts to create 7 layouts, once they import this titleblock, i'd like it to appear in all 7 layouts. So far this is what i've got.
namespace CHTitleBlockImportMetricH
{
public class CHTBMETRICH
[Code]....
View 7 Replies
View Related
Mar 18, 2013
I seem to be having an issue publishing multiple layouts into a single PDF.
All the layouts are setup to plot to 'Adobe PDF' and in the Publish options I have set 'Publish to: Plotter named in page setup' as well as 'Multi-sheet file'. When I click OK I'm prompted for the filename for each layout and have to save them as separate files.
The only time it does work is when I choose 'Publish to: PDF' which I guess uses AutoCAD's internal 'DWG to PDF' method. Is my preferred method an Adobe issue or is it fixable through AutoCAD?
View 9 Replies
View Related
Oct 26, 2012
How to use Autodesk's DWG to PDF driver to plot multiple through publish? Whenever I try to plot more than one layout at a time I get a driver not found error.
View 2 Replies
View Related
Feb 19, 2013
when I publish multiple layouts to a single pdf. When I publish all the files at one time the right side of the drawing where the title block is cut off about an inch and does not show the complete title block. Publishing to a printer as a multiple batch or publishing the layouts one at a time to pdf does not exhibit this problem.
View 2 Replies
View Related
Dec 9, 2011
I'm creating/selecting plot settings and apply them to my layouts.
The problem is when I open the plot dialog, the name of the page setup is not displayed. when I select the page setup name just created from the combobox, the setup is applied but the name still missing.
But this issue only combined with the new plot settings created in program. The existing page setups manually added from plot dialog are ok.The difference between the two type of plot settings is the .ISMODIFIED property is true for new settings but false for existing settings.
How can I make the plot settings not modified.
View 2 Replies
View Related
Nov 26, 2013
Multiple layouts in model space suddenly stopped showing boundaries.
View 1 Replies
View Related
Dec 9, 2013
I use 2012 at home and 2013 at office, I would like to PUBLISH more than one layout in grayscale, now I`m having it in color.
how can I define the plot style/ page setup within the PUBLISH command?
View 1 Replies
View Related
May 16, 2012
I was trying to make new .idw (inventor) templates based on .dwg (autocad) templates. For some reason the type face Simplex is not showing correctly on screen and on print outs. I have checked on various machines and result was same.
View 3 Replies
View Related
Jan 21, 2013
I am in the process of generating a separate package which is a suppliment to the main package for a project. The sheets from the suppliment will be incorporated into the main project, but many sheets from the main project will not be included in the suppliment.
My thought was to make a separate sheet set that shares layouts with the main set which I was able to do by making a copy and renaming the .DST file. Now I see that supposedly a single layout cannot exist in two sheet sets. I ended up working around this by creating a sheet in SSM with the same # and Name in each Sheet Set and was able to get them to appear in both. Want to find out if I'm creating a landmine of a problem down the road or if there is a better way to do what I'm doing. In the past, I beleive we simply selectively printed only the appropriate sheets but on that project it was cumbersome and at the scale of this project it will be worse.
View 8 Replies
View Related
Feb 2, 2014
how to take multiple A3 Layouts, and instead of having to plot and select each layout, can I select all the layouts and have them Pdf into one document.
I have had a look at publish and tried to do it, but they are still printing as individual sheets. What exactly does the term "sheet sets" mean. Is this what I am trying to achieve or is this a different action?
View 4 Replies
View Related
Nov 3, 2011
Okay, so I have about 25 layouts on this particular drawing that already have a default page setup assigned to them. I just created a new page setup and want to apply it to these layouts...but I cannot. I can select the right setup in the publish window but it does not stay current after publishing.
The problem also comes up if I do a "-purge" or wblock the entire drawing as to remove weird elements. The pagesetups then show as missing.
If I create a new drawing and setup the page setup for the first time AutoCAD will ask if I would like to apply to all layouts. Where is this option for existing drawings?
View 2 Replies
View Related
Jul 22, 2011
I used to use a really nice VBA routine for assigning a page setup to multiple layouts, but now I need something that will work for 2011 and up.
View 1 Replies
View Related
Jun 25, 2012
Any routine to re-size viewports in multiple layouts? We have to re-size viewports as they were created a little too small and are now spread across almost 1000 drawings in 18 dwg.
View 6 Replies
View Related
Apr 26, 2012
I got a model-file with several layout tabs and I want to delete a block in all layout tabs.
View 9 Replies
View Related
Aug 10, 2013
I have a csv file that has the drawing names and their layout names listed in columns A and B. Before I begin a project, I have to create the Sheet List (in Excel) and the csv file. The csv file is needed because I have a lisp routine that reads the csv and updates all my Title Block attributes in all my drawings. (VERY sweet program) What I'm wanting to do, is create new layouts (using my dwt) based on the information in the csv file. So, when I start a new project all I need to do is create the base drawing files first. Then, in my csv file I've got those drawing names listed in Column A and their corresponding sheet titles (Layout names) in Column B. I run the lisp and it reads the csv and creates layouts in all those base drawings and naming the layouts with the sheet titles from column B.
Column A Column B
DRAWINGS SHEET TITLES
drawing1.dwg A100
drawing1.dwg A101
drawing"n".dwg "n"500
Etc, etc.
I'm needing a way to automate creating hundreds of layouts at once. (very time consuming).So the lisp has to be able to read a csv (or Excel--doesn't really matter) and create new layouts (using my dwt) in as many drawing files represented in column A. [and filtered so it doesn't create duplicates so I can run the routine at a later date when new sheets are added to the drawings] Captcha?
View 1 Replies
View Related
Sep 6, 2013
I want to create a positive form of the inside of a differential housing.
My idea was to put two planes on the edges of the housing. Then using the Sculpt Tool to create a New Solid of the inside of the housing.
With the Derive Tool i could seperate the two Solid Forms from each other.BUT... When I want to create a New Solid with the Sculpt Tool I get the error ' Create Sculpt feature failed'.
I've tried to Derive the part to a Sureface model, but that didn't work.
View 9 Replies
View Related
Nov 25, 2013
Is there any way of applying a new page setup to all the layouts at once?
View 5 Replies
View Related