Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Jlink: in a drawing how to define the cur

diego.peinado

New member
<DIV style="PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING-LEFT: 0px; OUTLINE-WIDTH: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: inherit; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; FONT-SIZE: 13px; VERTICAL-ALIGN: line; BORDER-LEFT-WIDTH: 0px; PADDING-TOP: 0px" =forum>Hello, I'm automating the change of the title block for a big number of drawings. In multimodel drawings the main assembly is not always the current model. So for having the correct parameters in the table corresponding to the title block, I have to define as current model the main assembly. The question is How to do it? There are the Methods: pfcModel2D.Model2D.AddModel pfcModel2D.Model2D.DeleteModel pfcModel2D.Model2D.ReplaceModel pfcModel2D.Model2D.AddSimplifiedRep pfcModel2D.Model2D.DeleteSimplifiedRep But I can not see the pfcModel2D.Model2D.DefineCurrentModel, or something like that. Thanks in advance, best regards,</DIV><BR =Apple-interchange-newline>
 
Ok, ... This is a very unuseful forum ...


Well I had to workaround this problem. I read the new format, but previously I stored what I should include in the Title block (store the model). Then I went one by one filling the cells with the correct text.


BUT I have another problem. The font settings for each cell is lost. So,


Anybody knows how to choose the font settings for a table cell???
 
I've received this mail ...
I would explore the DrawingFormat, Drawing, and
SheetOwner interfaces.

I believe the parent model or assembly belongs to the
sheet and isn't affected by CurrentModel. You should be
able to reassign the sheetowner to your main assembly.

During normal pro drawing construction, if you open a
drawing sheet with an associated model, the title block
parameters fill-in with the associated model. If you add
a model, which would make it the current model, this
sheet info doesn't change. However, if you add a sheet,
the new sheet fills in with the current model. Showing
us that the each sheet has a static owner. I think you
would have to reassign the sheetowner and regen to change
the sheet parameters.

Although I don't know for sure, it sounds logical.
-mark

-----Original Message-----
From: diego peinado martin
[mailto:[email protected]]
Sent: Thursday, August 27, 2009 4:41 AM
To: [email protected]
Subject: [proecus] - Jlink: in a drawing how to
define the current model

I did not tried yet, but I'll do
 

Sponsor

Articles From 3DCAD World

Back
Top