AutoCAD .NET :: Create New Material - Add To Database
Jun 17, 2011
I'm having a complete blockout on my attempts to create a new material with VB.NET.
Dim db As Database = Application.DocumentManager.MdiActiveDocument.DatabaseDim tm As DBTransMan = db.TransactionManagerDim myT As Transaction' myT = tm.StartTransaction()Dim tt As Autodesk.AutoCAD.DatabaseServices.Material = New Autodesk.AutoCAD.DatabaseServices.Materialtt.Name = "Mat_new"tt.Description = "New Material"myT.AddNewlyCreatedDBObject(tt, True)myT.Commit()
It was noted that this code didn't work (which I can confirm):
"Just a guess, but you probably have to add it to the Database in order to use it."
I can't find any way to add this to the database. I'm working with the R2010 drawing format it that is relevant.
View 6 Replies
ADVERTISEMENT
Jan 7, 2012
I am looking for a material database with more steel types than the ones that are installed in inventor.
Is there a comprehensive database that I can download and install or do I need to add the material one by one.
Normaly I can just copy a existing steel and just use the existing properites and just change the name but I see a risk of this since in the future I may want to simulte a part and then the material data is not correct.
So... is there a good list that I can download and install??
View 2 Replies
View Related
Jul 11, 2012
This is my problem, each material in my cie. have a number code
EX.R069ARS407WLD35460
IT'S POSSIBLE TO LINK MY MATERIALS TO A XML, SQL OR ACCESS DATABASE???
View 1 Replies
View Related
Jan 24, 2013
Any way to add a new field into the materials database. We would like to be able to choose the material specification for the materials we use. So we would like to have a field for each of the materials where we could choose the material spec. It would also be great if we could then be able to connect this to our BOM. The second part I know should be able to be done but so far haven't found a way to add the material spec in like we would like.
View 1 Replies
View Related
Feb 1, 2012
How do I change the spelling of Aluminum to Aluminium in the material database in Inventoe.
View 1 Replies
View Related
Oct 31, 2011
Ones every three years we have an upgrade of Inventor. In a few months we have an upgrade from Inventor Proffessionel 2009 to Inventor Prof. 2012. Since we often use special materials in our design process we also create/add the new material in the material database. So here's the question; is it possible to copy the material database (special mades) from Inv Pro 2009 to Inv Pro 2012? It would save us a lot of work!
View 4 Replies
View Related
Apr 20, 2009
Is it possible to create a database resident system variable? My desire is to create a system variable that I can use to expose results of my program, and/or let the user set values that the program can use.
View 6 Replies
View Related
Aug 6, 2013
I am working on the AutoCAD customization and doing the same by VB.Net & C#.Net. But I just want to know the difference as mentioned below:
1. Insert Block In AutoCAD
Using VB.Net without using DataBase services..Only 1 statement is required to Insert the Block objAcadDocument.ModelSpace.InsertBlock(Required Arguments are here) Using C#.Net with DataBase services
There are many statments are there to insert only 1 block..Like Start Transaction, Lock the document, Get the Object Id Block etc...So my quetion is that when I have to use DataBase services and when not
what is the advantage of doing customization using DataBase services rather than go for wihout DataBase services.?
View 4 Replies
View Related
Apr 17, 2012
How can I create a new material in Inv2013.
I got lost with all the new menus in there.
View 9 Replies
View Related
Feb 10, 2013
I am working in inventor 2013. It's been a while since I learned inventor and have not worked with it in a few years. I'm not even sure if the capabilities exist.
1. I want to be able to create a new "material" from a picture. Specifically from a piece of fabric that I have that has patterns on it. I'm not sure if I should turn the picture into a material or if is should use shrinkwrap or if there is something that I don't know about that would be a better option.
2. Is there any way to make opposite sides of a piece different colors? Example, if I build a wall, can I make one vertical face black and the opposite vertical face silver?
3. Is there a way to do a "flythrough" or "walkthrough?" I've heard of programs that let you create a path through your model and then have the camera follow the path. Does inventor have a similar capability?
4. Back to materials; what is the best way to change the appearance of multiple surfaces in a model? Is the bill of material the best place to do this? I was hoping that there would be a way to do one thing and have it change multiple pieces of the model. I know that with dimensions you can say that one dimension is always equal to another, but is there a similar function with appearance so that I could change the appearance of one piece instead of having to edit every single piece.
View 2 Replies
View Related
Aug 27, 2012
I knew how to do this in inventor 2011 but now that i installed inventor 2013 I forgot. How to create a new material and save it for future use in inventor 2013?
View 3 Replies
View Related
Sep 7, 2012
I have copied the "Diamond Plate" from the Inventor Apperance Library to my document. Now I want to edit the texture that this style is using.
1. Where is the texture map that this style using located? When I edit the style, I can't tell what is telling it the filename. I have mundged every file on my hd that it could possible be (hoping it would cause an error), but that didnt work either. Another thing I tried was in the QAT "Duplicate as Generic", but that did not show me the texture file either.
2. Is there a way to change the angle of the texture?
View 1 Replies
View Related
Aug 24, 2012
I know the material-appearance feature is appalling and badly implemented, but I can not wait until SP1, so any simple method of adding new colors to Inventor. I have looked through the wiki help and there is no simple explanation.
In our company the way we generally work with Inventor is to assign certain colors to parts and sub-assemblies, thus making it easier to build the final assembly. In previous versions of Inventor this was easily done. In 2013 some of the bold (primary) colors are missing and almost all of the various shades of these colors are also missing.
Migrating files across to 2013 has also caused problems with the color appearance not updating correctly. I won't go into the details but the problems and niggles aren't consistent, and there doesn't seem a way to clean/refresh the document library.
What I want is about a dozen bold colors (with a matte finish so when editing the part you do not have to overcome the optical illusion of starring into a morphed mirrored image of a carpark).
View 4 Replies
View Related
Nov 15, 2012
What I'm trying to do is create images (PNG) that are populated with text values and images from a database. Something I could best describe as being like a mail merge. Can I write a Gimp script to do this? Let me give you some examples that demonstrate of what I want to do:
1 - Create randomly generated Lolcat images where I pull random cat images from a database and random funny text imposed in a layer on top of the cat image
2 - Create address labels where I pull names and address from a database and impose them on top of an image of the state I'm shipping it to.
3 - Create iconography for an e-commerce website that pulls from the product catalog to display the image with text of the category, product name, and size on top if it.
View 2 Replies
View Related
Dec 11, 2013
We have a waterjet and machine shop at my place of employment, and currently my work flow is to draw the parts. Then for parts that need material left for machining I create a new part and using the derive tool I place my base part which I then apply extrusions to fill the holes and use thicken to add material to the surfaces that need machining.
View 4 Replies
View Related
Nov 7, 2011
Im trying to create a list of text strings to select from defining material thickness and then plug that selection into a global form custom iproperty called "MaterialDescription".. Also, is it possible to access and pre-enter field text edit items in iLogic?
View 3 Replies
View Related
Nov 2, 2013
I can delete every unused material except one in the Material Editor.I am trying to make the custom Material library and somehowI have got the Material I cannot delete. URL....
View 9 Replies
View Related
Mar 12, 2013
I am in the samill building buisness. While designing I thought it would be nice to show logs on our equipment. Is there anyway to show bark on drawings to show the texture on the final drawing?
View 1 Replies
View Related
Oct 24, 2011
I assigned my students to create lighting fixture family. I wanted them to create a drop-down list of materials within the family to allow a user to select from the list of materials. This is accomplished by using a nested family - the inserted family has the materials defined. The drop-down list appears just fine in the properties, but we aren't able to apply it to the extrusion. I have tried inserting each family type and using the Label parameter, but Revit won't allow the link.
View 5 Replies
View Related
May 21, 2012
why i cannot change the color of the background when rendering? It is always black, and i cannot attached or make new material, if need to attach jpeg or new texture on my drawing, cannot create new material. what should i do? im currently using autocad for mac 2012.
View 1 Replies
View Related
May 22, 2012
I need to create the effect a cutter cutting through and removing material from an aluminum block. Similar to this below video...
I thought of using an animated displacement map, but that won't produce clean enough edges for close-up shots.
View 7 Replies
View Related
Feb 27, 2014
I have a Revit file with over 1,000 materials and associated appearance assets. It was created in a previous version of Revit before library support. What I want to do is create libraries from them. However, the only instructions to add them one at a time using dragging and dropping. That will take me days to do. Is there a way to simply create an asset or material library out of multiple materials from a project file at one time without having to individually select them?
View 1 Replies
View Related
May 12, 2011
I upgraded to 3DsMax 2011 and still have some problems navigating the Slate Material Editor. I want to create a Mix material as the "first" material but I'm only able to double click on the Sample Slot to get a standard material in the "View1" as my "first" material. I am able to create a "Mix" node here, but it has to be connected to the "Standard" material and this makes it so that i can not drag the material in to the "Environment and Effects" tab as my "Environment Map".
When i go back to the "Compact Material Editor" (which waists time), I can select the Standard icon but "Maps" is not available in the "Material/Map Browser" when i right click on an open space.
View 6 Replies
View Related
Feb 28, 2011
Im on Max 2011 with sp1 and the latest hotfix installed, working with vray 1.5 sp5. When i try to re-set mu material editor (compact not slate) i get the folllowing error message
"Runtime error: cannot assign undefined to material editor slots" and a Macro_media utilities window opens with the following script
macroScript clear_medit_slots
enabledIn:#("MAX", "VIZ")
category:"Medit Tools"
internalCategory:"Medit Tools"
ButtonText:"Reset Material Editor Slots"
tooltip:"Reset Material Editor Slots"
[code]....
I'm not a scripter but it seems that there is no material defined to place into the slots on re-set. I've recently had a problem with my material editor not giving me acess to slate as i had loaded up my 2010 menus into 2011 but i've since re-installed max and vray and am still getting this.
View 3 Replies
View Related
Aug 20, 2011
Is it possible to take Current User Coordinate System of external Database object, like
Application.DocumentManager.MdiActiveDocument.Editor.CurrentUserCoordinateSystem?
View 7 Replies
View Related
Dec 18, 2012
I'm trying to add a database (excel ) as source for object in Map3D.
I start but when i select the excel file that i've created and stored in my pc map3d says that the cration of the data source doesn't work.
View 7 Replies
View Related
Jun 2, 2011
what is the best way of getting (modified) event triggered for some specific object?
i see a lot of examples doing: if database is modified, then trigger event, then iterate our list to if that object is in it.
is that the better that way, like to add handler to the specific object, and then when each of them is modified, then each of them call handler?
View 3 Replies
View Related
May 31, 2013
Any equivalent ObjectOverrule for the PnId Database?
If an entity is copied I dont want certain field values to be copied.I've tried an ObjectOverrule but I can't get the RowId at that point.
I also noticed that the field values are set as XData. I edited the XData in my ObjectOverrule but the values still gets copied.Is there a setting at project level to control which fields not to copy?
View 1 Replies
View Related
Jun 8, 2012
I am trying to convert several drawings that are linked to an SQL database to SQL spatial. The drawings are from a Autodesk map 2004 system. I have Map D 2013 64Bit installed on a laptop along with SQL server 2012 RC0 (Microsoft SQL Server Management Studio 11.0.1750.32 Microsoft Data Access Components (MDAC) 6.1.7601.17514 Microsoft MSXML 3.0 4.0 5.0 6.0 Microsoft Internet Explorer 9.0.8112.16421 Microsoft .NET Framework 4.0.30319.269 Operating System 6.1.7601).
To keep my rouge laptop off the company network I exported our existing SQL data to a access database that I placed on the laptop and converted back to SQL and linked it to the 2004 drawings. That part worked fine. I would like to convert all of them to SQL spatial. I have converted a small drawing but it took a couple of hours. I am in the process of a larger drawing that has 60,000 entities and it has been working for 8 hours and only has 4550 of them completed. I am using the output to fdo connection.
View 8 Replies
View Related
Mar 27, 2013
As part of the automation requirements we are working on (through the .NET interface), we would like to find out whether a given drawing contains a sphere and if it does we would like to know its properties. We are doing something like this, to loop through the database and am able to get all Solid3d type of objects.
What I would like to know, if a given solid3d object is a sphere or otherwise. The code snippet is pasted here for reference:
bool bContainsSphere = false;
foreach (ObjectId Id in Ids)
{
DBObject oObject = ts.GetObject(Id, OpenMode.ForRead);
if (oObject.GetType().Name == "Solid3d")
[Code] ......
View 8 Replies
View Related
Jun 27, 2011
I want to create an application that intensively uses dynamic blocks, cross checking any new or changed block entity with existing ones.
It needs to be almost instantaneous but the only way I know will be impractical.
Looping through the property collection of each block reference, searching for each parameter then checking for a match.
Is there some sort of database functionality I can use to quickly compare block information?
View 1 Replies
View Related