AutoCAD .NET :: How To Access Sub Object In Plant3D From C Sharp
Nov 20, 2012
I have a program in C# where i am trying to access a sub-object which is of type Connectors/fasteners.
In a drawing, I have an object with class (PnPClassname) P3dConnector, and when I click on it's red circle with <ctrl> pressed, I access an object with class (PnPClassname) BoltSet. I have added the event oDatabase.ObjectModified, but this only access the P3dConnector-object, not the BoltSet-object. See the image and attached file.
How can i access this sub-object? I have tried to loop through prompted result set using SelectAll. The P3dConnector-object is listed but not the BoltSet-object.
I'm trying to create a assembly with .NET to draw all objects from a chosen spec. I started from Plant3D SDK which have a sample project. Autodesk ADN support is too slow to answer some basic questions since they have changed support platform recently.
After hours searching and trying to reach the main goal, I understood how connections between objects are done. The connector is based on End Type of objects. I'm not a meterial guy, so everything is much more difficult to me At CreatePipeline (..Plant SDK 2013SamplesPipingCreatePipeline) sample we have a class PipelineConnector which create connector. The main problem is only Buttweld connector code is available at CreatePart method in this class. I'm needing a piece of code where creation for others connector types such as Socketweld are shown.
the CreatePart code below:
public override void CreatePart() { Database db = AcadApp.DocumentManager.MdiActiveDocument.Database; ContentManager cm = ContentManager.GetContentManager(); part.Position = InsertPoint; part.SlopeTolerance = 0.1; part.OffsetTolerance = 0.0; if (ConnTypeName.Equals("Gasket")) { // Gasket // //PartName = "Gasket"; var spGPart = GetSpecPart("Gasket"); PSPColl.Add(spGPart); var blockSubPart = new BlockSubPart(); ObjectId Id = ObjectId.Null; try { if (spGPart.PropValue("ContentGeometryParamDefinition") != null) Id = cm.GetSymbol(spGPart, db); blockSubPart.SymbolId = Id; } catch { } part.AddSubPart(blockSubPart); // BoltSet // var spBPart = GetSpecPart("BoltSet"); BoltSetSubPart boltsetSubPart = new BoltSetSubPart(); boltsetSubPart.PartSizeProperties.NominalDiameter = NomDia;
Is there a way to access AEC object (AEC_WALL etc.) properties from RealDWG? I am able to get the class name AecDbWall. And even the extents of the entity.There are some Aec*.dll files in the RealDWG folder but I am not sure what to use to get the properties of Wall,window.I'm using visual C++. I have installed the object enablers of Architecture Structure Drawing, MEP, and also of Civil.
I'm upgrading some older COM based code to work in VB.Net with Civil 3D 2012. The app iterates through all of the Alignment objects, finding the ones with SuperEleveation, and places the names in a listbox. The user can select one or more of the alignments from the list to have the SuperElevation slope values modified.
The problem I am having is when I get the alignment object to update I get an execption that the object is locked. It's probably something simple but I'm at a loss to where to go next.Here as a brief code snippet:
' Sub1 is called to find all of the alignment objects with SuperElevation Sub Sub1() Dim objCol As Autodesk.AutoCAD.DatabaseServices.ObjectIdCollection Dim objID As Autodesk.AutoCAD.DatabaseServices.ObjectId Dim tm As Autodesk.AutoCAD.DatabaseServices.Transaction Dim myAlg as Alignment [code]....
When dealing with vector, it is just to click in image with "pick tool" to appear a tool bar where object align/distribution is available.
But when dealing with raster, this tool isn't available. The only way I found is through "menu=> objects=>align". To raster images, is there similar vector tool bar to access direct object align/distribution?
I am a new c sharp developer. I want to create a program in C sharp, which can communicate with autocad, when I do click in some area of the drawing, I can call to the c sharp program with the information of the object selected, for example I want to know the four utm coordinates of a rectangle,with those coordinates I want to search in a sql server database, which contains information of the object selected, for example if I select a rectangle, the database must contain the name of the owner, location and display to the user the information.
Otherwise, I want to open the program in c sharp, doing a searching via name of the owner and I want to open the dwg file that contains the utm coordinates of the name provided.
I am trying to fold a sheet into an "L" shape (using the the Fold command) but i would like to have the inside of the bend to be sharp and not a radius like on the outside. Is there any way that i can achieve this?
example [CommandMethod("Test")]public static void TestMethod(){ Document doc = Application.DocumentManager.MdiActiveDocument; Editor ed = doc.Editor; Database db = doc.Database; using (Transaction Tx = db.TransactionManager.StartTransaction()) {
[Code]...
1-autocad program will be closed 2-be selected within the file path c sharp example: csharp.jpg 3-I want to read data from a DWG excel file using C#. examples: dwgfile.jpg and drawing1.dwg 4-I want to list here DataGridView data 5-c sharp winform .net 4.0
Is there a way to put a hatch mark (dimilar to a DIMCENTER) at a "virtual sharp"? For example, two 90 degree lines have a 1/4" fillet/radius between them. I want to put a small cross there the lines would have theoretically intersected.
I'm trying to place my ordinate dimension to a theoretical sharp corner and the dimension will only go to the end of the arc (see pict). I try and drag the dimension end point by selecting the end of on line and dragging it over, select the other line and drag it till the two yellow dots meet at the intersection.
When I let go of the mouse button to place the dimension it pops to one side or the other of the arc.
I tried to use the Sharp tool but nothing happens, the brushes only leave on the photo a mark type, I read the tutorial by Adobe about it, it doesnt seem to work,.what other tutorials are there? that are simple and free.I restoring photos.
I have a Sony HXR-MC50U HD camera. I have been recording videos and then transferring them to my computer using the USB cord. They are in the AVCHD format. I use VS X4 to edit my movies. The video plays great when on the camcorder, however when I transfer it to the computer something happens. In scenes where I "Pan" I sometimes get what can be described as a "squiggle" that runs in the middle of the screen. Sometimes there is more than one of them. The squiggle looks sort of like when cinemax late night is squiggled out.. It is a blurry line that runs across the middle of the screen. This "squiggle" will then transfer to any output file that I select. Whether I choose HD AVI or HD WMV, it still does it..
I'm trying to make the edges sharp, when I use the Rectangle tool there is a 1px line on the edges which I think is suppose to blend the image to the background, but I don't want this 1px line, I want the edges to be sharp. How do I switch this off.
Using CS2, and I'm sure this is a default setting because I remember reading something about it in the book but now I can't find it.
Maybe this is something utterly simple that I have totally missed, but I just don't get it. everything I make seems to have a feathered edge... thats bad when I'm trying to make something with an absolutely crisp edge. The attached file shows whats hapening. It only really matters on the level where you can see individual rows of pixels, but that is where I prefer to work.
I like to put some (small) text on a simple image to use it on the web, but the text looks blurry. I've tried all the anti-aliasing options, but none of them looks sharp. Pixelfonts do not seem to look any better.Is there any way to make small text look sharp in Photoshop, or should I use Illustrator e.g.? I'm just a beginner in PHotoshop and I have no clue how to solve this problem.
tried everything to get sharp thumbnail pictures for my website but to no avail this is what i do :after working in raw (no sharpening) i then put my picture on a grey background size is 1804x2560 then go to image size put in 72 for res and bicubic sharpener it then takes it down to 541x768 then save for web 32.1k jpeg medium and optimised quality 70-90 then upload to web but still not sharp, when you click on the thumbnail to get a bigger picture its sharp. i have also tried save as and put in quality 9 with no success. i had the website designed for me and you cannot load a seperate thumbnail.
fashion pics taken in raw canon 20d and work in adobe cs3
Not sure what I've done to my Pen Tool, but since it's only feathered not sharp. Looked through Anti Alias / Refine Edge / Brush type but with no success.
i regulary scan documents with text but find text looks muddy when printed .blocky edges .ive played around with unsharp mask but no joy. if i input text through photoshop 7 its nice and sharp yet scanned text remains poor .played around with scanner using different resolutions and input formats ie colour doc . line art etc tried abbyy finereader but waste of time (need graphics in background)
I have a friend still using PS 5.5, OK, OK it's me. How would I create a SHARP outline around text or anything else. I've tried outerglow, stroke and expanding the selection. The problem is, wherever the font or shape has a sharp or 90 degree angle, the outline rounds off at that point.
I have designed a small gif motif for a webpage. I used paths which I then filled so it would be sharp. However, when I reduce it to the size I would like on the web page (about 45 pixels) , the edges look ragged. I can't seem to get rid of the bitmapped look.
it seems it's impossible to paint sharp edges in mudbox (ie when painting there is no softness to the brush)... is there a good way to do this that i'm missing?