AutoCAD Inventor :: Change Title Block Using Visual Basic

Jan 2, 2013

I am trying to change the title block of the active sheet using visual basic.  I realize this can be done using a snippet in iLogic, but I am creating an external .dll file using Visual Studio.

I have tried...

ThisDoc.Document.ActiveSheet.TitleBlock.Definition = "Title Block Name"

ThisDoc.Document.ActiveSheet.TitleBlock.Definition.Name = "Title Block Name" (This changes the name of the title block in the browser but doesnt swap it out.)

Call ThisDoc.Document.ActiveSheet.TitleBlock.Definition("Title Block Name")

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Change A Title Block?

Mar 26, 2013

Is there a way to change a title block? After finishing all the dimensioning and details I realized I used the wrong title block.

View 3 Replies View Related

AutoCAD Inventor :: Macro-command To Change Title Block In IDW

Feb 11, 2004

Is there any macro-command to do this :

"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?

View 8 Replies View Related

AutoCAD Inventor :: ILogic Rule To Change Title Block

Apr 23, 2013

I create a thread here: and I have most of what I require, but for some reason I can't iLogic to swap my title blocks within my drawing template.

View 3 Replies View Related

AutoCAD Inventor :: Title Block Text Size Change Does Not Work

Mar 20, 2013

I have tried to change the size of the text in the title block and in other places within a drawing, but the changes are ignored. They always come back to Tahoma 0.120"

Is this a bug in the program?

Inventor 2013 with the latest service packs, etc.

I really need to make some changes to the title block and making the text smaller is one of them.

View 3 Replies View Related

AutoCAD Inventor :: ILogic Automatic Change Of Drawing Title Block?

Nov 13, 2013

I am currently working with fx parameters and iLogic to drive a model and it's corresponding drawing to change based on a single user parameter.

I have managed to get the drawing to update both the scale of the views I need and the size of the sheet with the change in parameter using the following rule:
 
IfParameter("EB75551.ipt.Rise")<1801Then
ActiveSheet.ChangeSize("A1", MoveBorderItems :=True)
ElseIfParameter("EB75551.ipt.Rise")>1800Then
ActiveSheet.ChangeSize("A2", MoveBorderItems :=True)
EndIf

However when i attempt to use this with the title block using the function:

ActiveSheet.TitleBlock="My Title Block"
in place of the sheet change size it brings up the error message:

Error in rule: Drawing Title Block, in document: Drawing

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

I have read elsewhere that this is due to me having prompted entries for the scale and drawn by fields, however when i use the function designed for prompted entries: ActiveSheet.SetTitleBlock("Other Title Block", "promptedEntry1", "promptedEntry2")
It fills in the prompted entry fields from the code and if i change these entries in the "edit field" option they are overwritten when it is updated.

Is there a way have the prompted entries when you open the drawing fill in the "promptedEntry1" field in the rule so that I can use the rule? Or am I going about it the wrong way?

I should point out i'm new to iLogic and no-one in my workplace can use it so each person changing the "promptedEntry1" field to the scale they wish isn't a wise move.

View 2 Replies View Related

AutoCAD Inventor :: Read / Change Prompted Entry Through Code From Title Block

Aug 27, 2013

How could I read / change prompted entry through code from title block (for example DIN) within VB.Net?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: FAILSAFE Basic Block Insertion?

May 20, 2013

I need a function that accepts a block name as an argument and will insert the named block without fail no matter if the block was made to scale uniformly or not.

How can I determine if the block should be inserted like:

(command "-INSERT" blkn "0,0" 1 0)

or:

(command "-INSERT" blkn "0,0" 1 1 0)

View 8 Replies View Related

AutoCAD Inventor :: Retaining Title Block Prompted Entries When Changing Title Blocks

Apr 26, 2013

The title blocks that we use have prompted entries in them and I would like to find a way using iLogic to copy the entries from one title block to another within the same drawing; i.e.. if the user decides to change from an A2 to A1 drawing.

I already have an iLogic rule which allows the user to change the active border, title block and sheet size based on a form selection but would like it to capture the prompted entries already entered and re-use them after the change.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Title Block Attribute

Jun 24, 2013

I can't find my notes on how I fixed it. When we insert our title block, it automatically inserts the drawing number. For one user, it doesn't work. The title block inserts, but it won't put in the drawing number. I seem to remember I need to change a setting or something to get it to work, but I can't remember what it is.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Insert Boundary To Title Block?

Jan 3, 2012

1. I want to all selected profiles or blocks set to one object, than continue to select second object,(see attached drawing file). How to write the "ssget" lisp.

2. Command "line" ask me specify next point.

3. Found object boundary prompt me to "select oblect", when i selected profile, with the error: bad argument type: consp.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Renaming Layouts According To Title Block

Mar 20, 2013

I have a specific problem with renaming layouts. I found some similar lisps, but I just could not make them work. 

In every layout I have following attributes. 

PROJECT: 306
PHASE: RD
OBJECT: A0101
PART: EL
DRAWING: 611
ZOOM: X
REVISION: 01

I need to rename every each of layout using those attributes. Layout's name should look like that: "306_rd_A0101_el_611_x_01" . "rd", "el" and "x" must be written using lowercase. 

View 9 Replies View Related

AutoCad :: Title Block Change From A4 To A3

Jun 3, 2011

i have a title block in the layout tab which i use for all new docs. when starting a new drawing i open my old one, delete the drawings and save it with a new name - this way i always have my title block how i want it in the Layout 1 tab. this has worked for me so far. but now I need to create an A3 print out.

i have created the picture that i need in modelspace but when i click in the viewport within the layout and select the scale that I have been asked to use, the pic becomes too big for the page.

when i go into page setup i can select a3 and preview this but it just shows my a4 page in the middle of an a3 page. so how to i make the titleblock and viewport bigger (to fit a3)?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Linking File Names Into Title Block But Only Using Some Of The Name?

Aug 18, 2011

We are using a title block and it has an attribute field that links to the file name. Now one of our projects is adding the revision to the CAD file name, but it messes up our drawing sheets.

i.e. It was fine when the CAD file name was 111-A222-ZZ-X-123456.dwg and this would display the complete 111-A222-ZZ-X-123456 in the drawing title.

Now we need to do this, the CAD file name, 111-A222-ZZ-X-123456-001002-A1.dwg and we still need to just show 111-A222-ZZ-X-123456 in the title block, striping away the 001002-A1.

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Automating Changes To Title Block Date Attribute?

Jul 18, 2011

I'm using Autocrat 2004.

I have a attributed titleblock. Sometime in the future I will need to change the date attribute to another value, i.e.. 7-11 to 9-11.

I can't place a text string in the title block because this title block is used for multiple drawings and the date will be different for different sets. I can't have numerous title blocks because of the client's requirements.

Question:

Is there a way to write a script to open a drawing, look for the specific attribute, change the date value, save and close the drawing - across multiple sheets? Would a lisp routine called by the script be able to do this? Or a script file called by the original script file? CAn you even use a script file in this manner?

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Rename Using Attribute From Title Block

Oct 22, 2009

I am working on a large project where a 3rd Party firm has turned over 100s of drawings that we need to get into our system. The problem is that they did not name their physical files properly. We have a particular numbering system for our drawings, the engineering firm did fill in our attributed title block properly and used our numbering system correctly within the drawing. However, their physical file name follows their format. We need to have the physical file name match the information in the title block to get into our system.

Is there a way to "Batch Rename" these files by reaching into the title block and then renaming the physical file to match the attribute?

I have to be honest, I may use AutoCAD 50 to 60 hours per week, but I am no programmer! I am just the go-to person here for AutoCAD whom is stuck trying to come up with a efficient solution for the project team whose engineering firm could not follow our procedures! I was hoping some sort of batch routine could take care of this problem for us instead of us having to individually rename each physical file one by one.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Export Title Block Attribute Text

May 9, 2013

How to export title block attribute text .. in a order from different layout .? file ext .xls or .txt  i got a tool named Autocad Automation tool but it not work very well autocad have data extraction - its also came all text .. and not in order .. can we develop the any lisp for that ?.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Copying Layout Tab And Xref New Title Block

Apr 30, 2013

I need a routine that will duplicate the current sheet's Layout tab and content to the next tab, set it current, delete the titleblock (by name) on the new tab and reference in a differently named titleblock, 1:1, 0,0 onto the new Layout tab. I'll be running this in a batch script.

View 9 Replies View Related

AutoCad 2D :: How To Change Border And Title Block Colour

May 15, 2013

We have decided to have a company re-brand.

This involves a New Logo and slight colour change!!!

We have booklets with up to 30 layout tabs in each one.

Is there a quick way to change the border and title block colour on all these layouts rather than have to do a quick select on each tab!!

View 4 Replies View Related

AutoCAD Inventor :: Divide Segment Equally With A Range In Visual Basic

Jan 15, 2013

How do you divide a segment equally with a range in visual basic?

example-

length is 144 in

range- 7.5 - 9in

answer- (18) at (range 8 in)

like to know how to do this in Visual Basic so I can create some rules and forms in iLogic

View 3 Replies View Related

AutoCAD Inventor :: How To Handle A Basic Topology Change

Aug 8, 2013

The attached assembly contains 3 parts modelled in slightly different ways.  All parts fail when the dimension of 600 is changed to 200 in the Tool Part, probably because a different face comes into play...but it's the same body.

View 4 Replies View Related

AutoCAD Inventor :: New Title Block In Old Drawings?

Oct 22, 2013

I have done a new Title Block in our drawing templates.

It only works in New drawings if I open an old drawing I must "Copy/paste" the new Title Block into the browser to the left But I want all our old drawings to use the new Title Block.

Is there a way to have the new Title as default on all old drawings?

View 3 Replies View Related

AutoCAD Inventor :: Customizing The Title Block?

Jun 14, 2012

How can I customize the title block where it says Drawn, Checked and approved?

I want the dates with initials to place automatically. However, I want the date of approval and checked to be 2-5 days after the drawn date. (using Inventor pro. 2012)

View 1 Replies View Related

AutoCAD Inventor :: Replace Title Block C#

Oct 2, 2013

I am trying to replace the title block of the first sheet of the active drawing via C#. I currently am receiving the following error on the last line of The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)).

Why the code below is throwing this error? I have tried multiple variations of the code below to no avail and I'm sure this is something minor that I am overlooking. The title block definition under Drawing Resources is replaced with no errors, the title block on Sheet 1 is deleted just fine, but I can't seem to add a Title Block back in!

How Documents are defined:

Inventor._DrawingDocument oDoc = getDoc();Inventor.DrawingDocument sourceDoc =(Drawing Document) instance.Documents. OpenWith Options(sPath, options, false); Find, copy, replace: TitleBlockDefinition tBlock = sourceDoc.TitleBlockDefinitions[blockList.SelectedItem.ToString()]; TitleBlockDefinition newBlock = tBlock.CopyTo(oDoc, true); oDoc.Sheets[1].TitleBlock.Delete(); oDoc.Sheets[1].AddTitleBlock(newBlock);

View 1 Replies View Related

AutoCAD Inventor :: Weight In BOM / Title Block

Apr 20, 2012

I am trying to include the weight for all components in assembly BOM as well as calculated overall weight in TB, but there are no available property to choose from in the drop-down list.

View 2 Replies View Related

AutoCAD Inventor :: Get Parameter Into Title Block?

Apr 10, 2013

I've created the user parameters and they get the information I need by the rules in illogic and also added as custom properties, but when I try to put them on the title block they don't retrieve the information.

View 9 Replies View Related

AutoCAD Inventor :: Get Parameter Into Title Block (CF)

Apr 10, 2013

I've created the user parameters and they get the information I need by the rules in illogic and also added as custom properties, but when I try to put them on the title block they don't retrieve the information.

View 1 Replies View Related

AutoCAD Inventor :: Mass In Title Block

Nov 26, 2012

I have added the mass properties and I do not want the lbmass behind it. How do I get rid of it?

View 5 Replies View Related

AutoCAD Inventor :: Title Block Macro

Jun 13, 2013

Malfunctioning Title Block Macro in Inventor 2014? The script is attached. I think there is a problem with datums. I have switched to a new computer and installed Inventor 2014 on it. The macro worked with my old computer and Inventor 2013. This is a .ivb-file, not a .txt-file. Please change that before you test it.

View 8 Replies View Related

AutoCAD Inventor :: Custom Title Block

Mar 28, 2013

I have a cutom title block that automaticly places material, status, stock number etc. of the component in the drawing sheet, but I am stumped as to placing the quantity automatically. I have defaulted to using a prompted entry, but that is prone to errors.

View 9 Replies View Related

AutoCAD Inventor :: Title Block Reference?

Apr 5, 2012

I have text in my title block that references part properties. If I have several different part and assembly base views on a sheet, how do I control which one the title block references? It defaults to the first one that was placed. I am using 2011 Pro.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved