AutoCAD .NET :: Modifying XRecord Within File Header Sub Directories
Jan 8, 2014
As you can see in the attached print screen TheProblen.png I need to modify the XRecord within a file header sub directories.
I have managed to loop through the file directories and sub-directories and even extracted the ResultBuffer of the correct sub-directory.
I now have a ResultBuffer/XRecord that has an array of typed values in it and I need to modify one of the typed values. How do I do it?
View 1 Replies
ADVERTISEMENT
Sep 6, 2011
I have a dictionary in the NOD with several xrecords. I want to change an entry value in one but the others in the dictionary also get changed. How would they be connected?
This is some simplified code that looks at two xrecords, changes one, then reports the new values. Weird thing is that both xrecords get changed.
For i = 1 To 2 XRecId = MyAppDict.GetAt(i) XRec = trans.GetObject(XRecId, OpenMode.ForRead) ed.WriteMessage(vbLf + "XRecord: " & i & " First Entry: " & XRec.Data(0).value) Next XRecId = MyAppDict.GetAt(2) XRec = trans.GetObject(XRecId, OpenMode.ForWrite) Dim data As ResultBuffer = New ResultBuffer(New TypedValue(DxfCode.Int16, 2), New TypedValue(DxfCode.Text, XRec.Data(1).value)) XRec.Data = data For i = 1 To 2 XRecId = MyAppDict.GetAt(i) XRec = trans.GetObject(XRecId, OpenMode.ForRead) ed.WriteMessage(vbLf + "XRecord: " & i & " First Entry: " & XRec.Data(0).value) Next
View 2 Replies
View Related
Oct 7, 2011
I have been attempting to create some of my own line types by modifying the coding in the acadiso.lin file. I have been relatively successful in creating new line types but it is more by trial and error and wanted to understand the coding better.
View 2 Replies
View Related
Dec 11, 2011
VB.NET loses me again.
In my VBA program I had a function to read/write an external data file to retain and recall user settings on a form.
The nature of the function was quite simple:
For Each oObject as Control in Me.Controls
If TypeOf oObject is ComboBox
Do my thing
ElseIf etc.
......
end if
Next
This code is almost identical in my VB.NET references, but when I try to run it I find the "Controls.Count" value for the form is only 1 (that object is a Tab control) thus I'm unable to access the individual controls with this code.
There is also a "ControlCollection" object, but this appears as "Nothing". Where should I go from here?
View 2 Replies
View Related
Jan 2, 2014
I have a lot of files in the extension ogg that I need to edit using premiere pro cs 5.5.After loading the file receives the information:"The file can not be opened because of header error".I installed already URL....And further receives the above error.The information that I read from MediaInfo:
General
Complete name G:3-4.ogg
Format : OGG
File size : 1.68 GiB
Video
ID : 29297 (0x7271)
Format : Theora
Width : 2 560 pixels
Height : 1 920 pixels
Display aspect ratio : 4:3
Frame rate : 30.000 fps
Compression mode : Lossy
Writing library : Xiph.Org libtheora 1.1 20090822 (Thusnelda)
Is it possible to load a file to the premier pro without converting them?
View 1 Replies
View Related
Jul 30, 2011
Why the xrecord not save?
public static void SaveInscCad(ObjectId idEnt, string InscCad) {
Database db = AcadAppServices.Application.DocumentManager.MdiActiveDocument.Database;
using (Transaction tr = db.TransactionManager.StartTransaction())
[Code] ....
View 2 Replies
View Related
Sep 25, 2013
Show me a very simple code-example, how to attach an extension dictionary to an AutoCAD Object and add a XRecord?
View 3 Replies
View Related
Oct 27, 2011
How do I get the xrecord attached to an entity in a drawing, without key?
View 1 Replies
View Related
Jul 22, 2011
Is it possible to store a String Array to an XRecord?
View 1 Replies
View Related
Mar 12, 2012
I have polyline that graphically represents a pipe. Obviously, the polyline can not contain data for a pipe: size, material, insulationtype, insulationthickness, schedule, etc. So, I have created a custom object with all of the appropriate properties, methods, events, etc that I need for it to behave as a pipe. My custom object has a reference to the actual polyline with a Handle property stored as a long(since AutoCAD objects can not be serialized). I referenced an AU 2008 class by Jeffery Geer (A Pattern for Storing Structured Data in AutoCAD Entities CP401-2) to get me as far as I am.
My object is marked serializable. I serialize it to binary and attach the binary in 127 byte chunks to the xRecord of the polyline object.However, as soon as I attach this binary xrecord, I get the following message when I try to save the drawing:
"One or more objects in this drawing cannot be saved to the specified format. The operation was not completed and no file was created”
View 5 Replies
View Related
Jan 24, 2011
Question, Is it possible to update values stored in an xrecord. If not what is the best aproche my goal?
View 1 Replies
View Related
Oct 29, 2012
Is there a way to limit the folder directory to only the last few directories?
Example:
If I have the file here,
C:folder1folder2folder3...folder10file.dwg
And I only need to know this,
folder9folder10file.dwg
Some of my files exist in folder directories that extend off the sheet within the plotstamp printing single line and I would like to shorten them to only show the last few directories as all the ones before are exactly the same. I do not want to change the plotstamp to multiline and I can not move the files to other directories as this is just how our system is set up.
View 1 Replies
View Related
Oct 16, 2013
I am in the process of creating 2 lisp routines, one that loads Support file search paths on the network and one that adds support file search path locally. Each routine will be run depending on the ability of ACAD to find a file on the server. I noticed that when I add the new directories the default AutoCAD folders get replaced. I researched this and found that using the SETENV and ACAD I can include the default support paths.
The issue I am running into is that not all default folders are being added to AutoCAD when I used the ACAD variable. A plugin folder under Program Data is listed in the original install, but it is not listed when I add my directories and used the ACAD variable to add the default directories. The same thing happens when raster design is installed. The help folder and the install directory for raster are not carried over when using the ACAD variable.
I am attaching the coding for the lisp routine adding server paths. Is there some syntax I can add to tell it to append to the list instead of replacing the SFSP list?
(vl-load-com)
(setq files (vla-get-files
(vla-get-preferences (vlax-get-acad-object))
)
)
(setq SERVNM (getenv "servername"))
(setq SLSERV (STRCAT "\\" SERVNM))
[code].........
View 2 Replies
View Related
Dec 31, 2012
Just yesterday I noticed that all my Xfrog plant models were black. They were still showing in the scene as black blobs, but on checking the directories to where the models and their images are--Maya could no longer read or find the directories. They were all still in the same place on my hard drive, and the path to them under the attributes for the models was still correct, but Maya said they weren't there (couldn't reload or click to view them.) Being a newbie I didn't have them all in the 'source images' directory of the project, if that matters, but I hadn't changed or removed anything and they had worked up until now.
I had to step through the different items, bark, branch, leaf, etc., and click the folder icon, reselect the exact same file/image, and poof, it works again. In some cases, just reselecting the file for one entry (e.g. a leaf) would then make the subsequent paths to that image work again, which saved some time. But it seemed like Maya somehow lost whatever linked it to the exact same directory and path that was still there in the attributes and still on the disc. Redoing all the links proved to me that the exact path still worked, but boy...what a glitch to have to go through and re-touch every tree, bush, leaf, etc.
View 1 Replies
View Related
Oct 26, 2011
i am unable to import RAW photographs that are already on an external drive, imported by another program via a netbook in the field. Gives no error message, just won't recognize the directories. Will recognize JPEG though. Taken with a Canon xsi. Lightroom is on an HP laptop with plenty of oomph. Have been using Lightroom v. 3.4.1 with no prior problems for thousands of photos, now all of a sudden...????
just completed installation of LR v. 3.5 and same issue: unresolved.
View 8 Replies
View Related
May 13, 2011
The company I work for has security measures in place which prevent me from modifying any directory within the C: drive. This means, of course, that I can't add fonts to either the system fonts directory or the Adobe/Fonts directory.
Obviously, this is a huge disadvantage, and I'm trying to find a workaround. Any way to make Photoshop find fonts in a different directory? I'm able to create and modify directories on our shared server, so I'd like to create an alternate fonts folder there and point Photoshop toward it.
(I'm using CS4 on a Windows XP 5.1 . I'm a Mac guy at home, so I don't know much about Windows.)
View 2 Replies
View Related
Dec 15, 2012
I like keeping my videos in a separate directory from my images so they are easy to find and stream with media center. Is there a way to import both images and video from a card at the same time and have the videos go to a different directory than the images?
View 2 Replies
View Related
May 18, 2013
How to setup all directories, folders and subfolders of files, on the left (in order by name). This is easily done in Photoshop Elements. How is it done in Lightroom 4.
View 1 Replies
View Related
Mar 6, 2014
how to flush lingering export directories? Screenshot for clearification.
View 2 Replies
View Related
Sep 18, 2013
I have created a table with C#. When I increase the table height the header/title rows are also geting increased. Autocad try to make all rows even with the same height. Is there a way that I can fix the Header /Title row height with C# ?
View 1 Replies
View Related
Oct 30, 2013
I have a drawing with two parcel tables in it. I would like the header on one to be Line Table 1 and the other Line Table 2, is this possible? When I change the text in the style, the header in both change.
View 2 Replies
View Related
Oct 29, 2012
"Non Autodesk DWG. This DWG file was saved by a software application that was not developed or licensed by Autodesk. Autodesk cannot guarantee the application compatibility or integrity of this file."
In opening some drawings made by a Non-AutoDesk program, I get the above message. There does not appear to be any problem with the drawings, I can work with them no problem with AutoCad, but the message seems to remain even after saving the drawing with AutoCad.
I know that setting DWGCHECK to 0 can suppress the message, but is there a way of getting rid of the message for good.
View 8 Replies
View Related
Jun 4, 2012
This is really a Windows question, but I don't know anything about Windows, while I do use AutoCAD.
With the new Windows 7, the AutoCAD header is transparent.
When other programs are behind AutoCAD, their light colored headers make it impossible to see the full path of my drawing files.
I can't just look and see which drawing file I am in.
I have to move a mouse and click somewhere.
Is there any way to make the headers opaque?
View 4 Replies
View Related
Apr 10, 2013
I want to be able to change the header on a PL in a drawing using iLogic.
I'm able to "find" the PL(s) on a drawing but can't seem to figure out how to access the header property My goal to to change the header to show the P/N of the assembly/part it's created from.
My Current code is below:
doc=ThisDrawing.Document
oBOMs=doc.DrawingBOMs
For Each oBOM In oBOMs
MessageBox.Show("Found a PL", "Title")
Next oBom
In between the for/next loop is where I want to access the current BOM and change it's header depending on the related .iam/.ipt.
View 2 Replies
View Related
Jul 6, 2011
Is there a way for a table linked to a surface (ie. a volume table) to display the surface name in the header? There seem to be no options to do so and copy/pasting <[surface name]> into the header text box just returns a number, oddly.
I will have upwards of 40 surfaces and I don't want to have to manually edit each one!
Seems like a bizarre and simple omission seeing as the tables are dynamically linked to the surface anyway.
View 6 Replies
View Related
Nov 24, 2011
I have been unable to rotate the header text in a parts list. I created a new text style that is rotated 90 deg, a new part list style that specifies to use that text style in the header. Everything else about the text in the header displays correctly (i.e. font, size, colour, etc) but not the rotation when I insert the parts list in a drawing using the correct standard. When I apply this same standard to a regular text line on the drawing it will rotate the 90 degs but not in the part list.
Inventor 2011 SP2
View 1 Replies
View Related
May 7, 2013
aIs there a way to Format the Column Header to wrap text & rotate text if necessary? I would prefer if I could only Format the QTY Column Headers, but leave the others s is.
View 2 Replies
View Related
May 17, 2013
I have an excel document with a document header reserving rows 1-12. When i use "extract data" in autocad, i don't want the excel header to disappear. Can i set another cell than A1 to be the starting cell in Excel? Or how do i keep the header in the document?
View 5 Replies
View Related
Feb 5, 2013
A co-worker asked how to display the full drawing path in the window header. He said that it used to, now doesn't. I have never seen the full path of the drawing in the header before. Mine just says "AutoCAD Civil 3D 2013 (Drawing File Name) [Project Folder]"
I checked in Options, but didn't see anything.
View 1 Replies
View Related
May 23, 2012
Quick question...
Once a 3D object is drawn/completed in Inventor LT, how does one go back to the object to change the length/radius of certain objects without having to completely redrawn the object. For instance, imagine a bike wheel that is fully draw. Later perhaps one wants to go back to the wheel and adjust the radius of the spokes and the length. How does one do this quickly. In 2D I see how, but can this also be done in 3D with Inventor LT?
Working with... Autodesk: AutoCAD Inventor LT Suite 2013 | OS: Windows 7 | GC: ATI 6670 | Mem: 8 gigs RAM | Proc: Intel core i5 | Monitor: Acer V213HL
View 4 Replies
View Related
Feb 27, 2013
I have created this function that is to move all the attributes based on a startpt and a newpt. If the last argrument to the function is true, all attributes move the same amount in the x & y direction(this part is working fine). If the argument is false. I want the attributes to align with the x value of the first attribute. It works unless the user has set a UCS. I need to align the attributes to the UCS not the WCS. Can't seem to figure out the right transformby to apply.
Public Sub MoveAttributes(ByVal Blockobj AsObjectId, ByVal stpnt AsPoint3d, ByVal endpt AsPoint3d, ByVal alignatt AsBoolean)
If Blockobj.IsNull ThenExit Sub
Dim attributeDistFactor AsDouble = 0.1371425
Dim xmove AsDouble = stpnt.X - endpt.X
Dim ymove AsDouble = stpnt.Y - endpt.Y
[code]....
View 1 Replies
View Related