Quantcast
Channel: PTC Community: Message List - Arbortext
Viewing all 3717 articles
Browse latest View live

Re: Macros that do things - even when told not to!

$
0
0

I've added the macro below, there are notes in it towards the end that are relevant to the problem of it changing lines.

 

 

#THIS IS TO ADD A NO-PEN LINE TO ENDS OF A PAIR OF PARALLEL BEZIERS AND THEN ADD WHITE FILL (CAN GET IT TO ADD CONTOUR BUT DON'T KNOW ABOUT SETTING THE FILL TYPE), THEN GROUPING BEZIERS AND CONTOUR.

 

macro join_bezier_ends_test

  Define exit_loop as String

  Define first_bezier as Element

  Define second_bezier as Element

  Define contour as Element

  define first_bezier_picked_x as element

  define first_bezier_picked_y as element

  define second_bezier_picked_x as element

  define second_bezier_picked_y as element

  define end1 as element # FIRST END LINE

  define end2 as element # SECOND END LINE

  define me as MouseEvent

 

  exit_loop = "no"

    While (exit_loop = "no")

    me = Wait MouseClick

    Select at me.ptmm.x me.ptmm.y Direct

      first_bezier_picked_x = me.ptmm.x

      first_bezier_picked_y = me.ptmm.y

 

# NEED TO MAKE VARIABLES OF THE X AND Y PICKED POINTS FOR BOTH BEZIERS SO END LINES CAN BE DRAWN

 

    first_bezier = ActiveDoc.FirstSelectedElement

    If (first_bezier.type = "Bezier")

      exit_loop = "yes"

 

        # ADDS INFO TO BEZIER TO EASE GROUPING LATER

        Create Object_Info first_bezier

        Create Object_Attribute "join_bez" "String" first_bezier

        first_bezier.Info.Attributes["join_bez"].Value = "bez B1"

 

        # HERE IT WORKS OUT POSITION OF START AND END POINTS OF 1ST BEZIER

        define seg_count as float

        seg_count = first_bezier.SegmentCount

        define first_bezier_startX as point

        define first_bezier_startY as point

        define first_bezier_EndX as point

        define first_bezier_EndY as point

        first_bezier_StartX = first_bezier.bezier.startPoint.x

        first_bezier_StartY = first_bezier.bezier.startPoint.Y

        first_bezier_EndX = first_bezier.bezier.segments[seg_count].endPoint.x

        first_bezier_EndY = first_bezier.bezier.segments[seg_count].endPoint.Y

 

    End If

    If (exit_loop = "no")

        message 'The First Bezier Was Not Selected - Start Again'

        Select None

        Debug Reset

    End If

    End While

  exit_loop = "no"

    While (exit_loop = "no")

    me = Wait MouseClick

    Select at me.ptmm.x me.ptmm.y Direct

      second_bezier_picked_x = me.ptmm.x

      second_bezier_picked_y = me.ptmm.y

    second_bezier = ActiveDoc.FirstSelectedElement

    If (second_bezier.type = "Bezier")

      exit_loop = "yes"

 

        # ADDS INFO TO BEZIER TO EASE GROUPING LATER

        Create Object_Info second_bezier

        Create Object_Attribute "join_bez" "String" second_bezier

        second_bezier.Info.Attributes["join_bez"].Value = "bez B2"

 

        # HERE IT WORKS OUT POSITION OF START AND END POINTS OF 2ND BEZIER

        seg_count = second_bezier.SegmentCount

        define second_bezier_startX as point

        define second_bezier_startY as point

        define second_bezier_EndX as point

        define second_bezier_EndY as point

        second_bezier_StartX = second_bezier.bezier.startPoint.x

        second_bezier_StartY = second_bezier.bezier.startPoint.Y

        second_bezier_EndX = second_bezier.bezier.segments[seg_count].endPoint.x

        second_bezier_EndY = second_bezier.bezier.segments[seg_count].endPoint.Y

 

    End If

    If (exit_loop = "no")

        message 'The Second Bezier Was Not Selected - Start Again'

        Select None

        Debug Reset

    End If

    End While

 

# NOW ADD LINES ACROSS THE ENDS

create line first_bezier_StartX first_bezier_StartY second_bezier_StartX second_bezier_StartY

end1 = ActiveDoc.FirstSelectedElement

        Create Object_Info end1

        Create Object_Attribute "join_bez" "String" end1

        end1.Info.Attributes["join_bez"].Value = "bez end1"

create line first_bezier_endX first_bezier_endY second_bezier_endX second_bezier_endY

end2 = ActiveDoc.FirstSelectedElement

        Create Object_Info end2

        Create Object_Attribute "join_bez" "String" end2

        end2.Info.Attributes["join_bez"].Value = "bez end2"

 

#NOW SELECT THE BEZIERS AND THE END LINES TO GENERATE CONTOUR

   Select If Object_Attribute_Value "join_bez" contains "bez"

 

#HOW DO I SET IT SO THE CONTOUR HAS WHITE FILL?

    Generate contour

      contour = ActiveDoc.FirstSelectedElement

        Create Object_Info contour

        Create Object_Attribute "join_bez" "String" contour

        contour.Info.Attributes["join_bez"].Value = "bez C1"

        Arrange bottom

        Select None

 

#NOW REMOVE THE END LINES

   Select If Object_Attribute_Value "join_bez" contains "end"

   Delete selection

 

#NOW SELECT BEZIERS, AND CONTOUR TO GROUP

   Select If Object_Attribute_Value "join_bez" contains "bez"

   Group Selection

 

wait mouseclick

# THIS JUST ADDED TO ILLUSTRATE THAT LINES ARE STILL CORRECT AT THIS POINT - BEZIER LINES ARE UNCHANGED, CONTOUR IS NO LINE. AS SOON AS YOU CLICK THE MOUSE, THE MACRO ENDS AND ALL THE LINES BECOME THIN. IS THIS BEING DONE AFTER THE MOUSECLICK OR IS IT SOMETHING EARLIER THAT'S CHANGING LINES BUT ONLY BECOMING APPARENT AT THE END OF THE MACRO?

 

#I'VE COMMENTED OUT THE REMAINING ACTIONS TO ILLUSTRATE THAT IT STILL CHANGES LINE TYPES EVEN WHEN NOTHING MORE IS DONE

 

#Select If Object_Attribute_Value "join_bez" contains "bez"

#delete object_info deep

 

#Select None

 

end macro


Re : Arbortext S1000d Editor

$
0
0

Hello,

 

I am trying to understand if there is any Default DTD / Stylesheet template in ATXT S1000D Editor which can be used for a demo. I would appreciate any guidance in this direction.

 

br. Nitesh Pujari

Re: Installing DTD and FOSI into Arbortext 5.4

$
0
0

*IF* I understand the question (more than likely, you should consult an AE guru at your site/company, since there are usually server-side, publishing engine, and permissions issues -- and I'm clearly NOT that guy/gal, nor have I that kind of knowledge, but here are some ideas that may help):

 

From the Army Aviation DTD/FOSI download site, be sure to download the "supplemental" document as well.  It mentions what needs to go into folders and what files you may need to edit.

 

From Arbortext Editor, Tools --> Preferences --> File Locations (following the Army Aviation site supp. doc), add the appropriate local pointers to "custom\doctype" etc. folders.  You may need to edit some of the stuff you download from the Army site, depending on what type of doc's you are creating (dash10, MTF, etc.)

 

Then, once you have everything in place in the folders and are pointed to properly from AE (edited as needed, with proper permissions):

 

Go to AE's File --> New and select "Add." Select the DTD you need.  It will then appear on the "Document Type" list.

 

I hope this helps.  IMHE, AE has a lot of config issues that a sys admin type of person usually helps set up.

 

Best wishes!

Javascript errors do not go to java_console()

$
0
0

I have Javascript code embedded in a XUI dialog and I would like to see errors when something goes wrong.  I think that the errors should go to the java console, but nothing ever shows up.  Do I need to do something to get the errors to appear?

 

For example I might have code like:

 

do_something(foo);

 

But maybe 'foo' isn't really the right variable name, it should be 'bar'.  when that line of code executes, nothing happens.  Program execution stops, but no indication of the error shows up in the console.

 

I would really love to see an error like "foo is not defined" instead of having to just look through the code an imagine what might be going wrong.

How to check who is using Arobtext editor 5.4 license

$
0
0

Hi,

 

I have Arobtext editor floating lciense version 5.4, but how to check who is using the lciense. On client machine i went to Help--AE--Licenses, it lists the license users including me but im not able to scroll horizontal to find out other user. How to check the same from Server & Client machine.

Capture.JPG

Is error checking from `` possible?

$
0
0

When I run a command like:

 

local $value = `fake_program_name`

 

I get nothing back in $value,  $main::sh_status is set to 0.  $sh_status is empty.  $main::ERROR is empty.  Is there any way to actually check to see an error?

 

(fake_program_name doesn't exist, which seems like a way to generate a pretty obvious error)

Re: replace function help

$
0
0

Hi Rob--

 

There are a couple of quirks about Arbortext's find feature when it comes to matching markup:

 

1) For it's internal "Pub" processing instructions, it aliases them to a pseudo-element with the name immediately following the PI name. In this case, it thinks of <?Pub _font ....?> as if it were "<_font>"

2) It doesn't like attribute values in search markup strings, probably because in the internal document model, attributes are unordered, so searching for "<foo a='bar' b='baz'>" would also need to match "<foo b='baz' a='bar'>", which gets complicated when you have a large number of attributes.

 

The implication of these together is that you can find the things you're looking for using something like this:

 

replace('<_font>&ordm;</_font>','&ordm;',0x20B0)

 

If you *really* want to make sure you are only getting the ones that are labeled as Times New Roman, you might need to use XPath for that, something like this:

 

oid_xpath_nodeset(oid_root(), $ordms, "//_font[@FamName='Times New Roman' and .='º']);

for (ordm in ordms) {

   oid_delete(ordms[ordm], 0x1) # 0x1 = delete tag but preserve content

}

 

As Gareth points out, however, there are probably better approaches that don't require you to modify your markup every time you publish. Probably the easiest would be to modify your charent.cf file to remap the ordm character to the degree character (0xB0). Check the comments in $ARBORTEXT/lib/charent.cf, make a copy in your custom directory, and change the line where ordm is defined so it maps to Unicode 0xB0 instead.

 

HTH.

 

--Clay

Re: Windchill integration: how to extract references to graphics?

$
0
0

Hi Alexey--

 

If your Windchill adapter is configured correctly, that should happen when you check in the XML document. The burst rules should handle the upload and storage of the graphic at that time, and replace the local file path with a URL to the Windchill object created for the graphic.

 

--Clay


Re: How to import MS Word documents to Arbortext Editor

$
0
0

Hi Chocolate--

 

You could also try OpenOffice/LibreOffice Writer, the open source analog of MS Word. It can read Word files, and can also save files as DocBook XML. Depending on how the original Word files are formatted, you may have to do some tweaking in order to get something useful out of the Save As operation, but that is likely to be true no matter what method you use.

 

Even if DocBook isn't the doctype you are using, it will probably be a lot easier to convert from DocBook to your DTD than it would be from Word XML directly.

 

--Clay

Where to get "Burst Configuration File for DITA Technical Content "?

$
0
0

Hello there,

 

I was wondering where I can get the "burst configuration file".

 

I made a DITA data with Arbortext Editor and I chose DITA Technical Content as the category of the data.

However, when I tried to save the data with ACM, the links in the data became invalid.

I found out that I need the burst configuration file for DITA Technical Content to sort this problem out.

 

It would be great if anyone could suggest me where to get it.

 

Thank you very much in advance.

Re: Where to get "Burst Configuration File for DITA Technical Content "?

$
0
0

Hi,

 

please have a look in the folder where Arbortext Editor is installed (usually something like C:\Program Files\PTC\Arbortext Editor). There you will find a subfolder "adapters" and within there "com.ptc.prowt.arbortext\bursting". In the bursting folder are a bunch of files ending with ".bcf" (assuming you have Arbortext version 6).

These are the so called burst configuration files (sometimes also refered to as burstspec). For DITA technical content you will need atidefaults.bcf (which defines the global default settings), bookmap.bcf, ditabase.bcf. Depending on what content types you are using you might also need map.bcf, keybase.bcf and ditaval.bcf.

 

To have Arbortext use these burstspecs you need to upload them to ACM (to a library or folder where all Arbortext users can read from). Use Arbortext Editor, connect to ACM, open the burstspecs you want to upload (beginning with "atidefault.bcf") and use "File->Save as server object" to store it. Make sure you enter the exact name of the burstspec file as ACM name (without the .bcf). Alternately you could set a Windows environment variable named "APTOBJCFG" and enter the complete path to the "bursting" folder mentioned above. You need to set the Environment variable before you start Arbortext Editor. I would recommend you make a copy of the bursting folder somewhere and point APTOBJCFG to that copied folder. You can then start modifying the burstspec files to your needs without touching the originals shipped with Arbortext.

 

Please refer to the Arbortext Help Center (Administration->Arbortext Editor, Styler, and Architect->Content Management Guide) for further information about the various options you can configure in the burst configuration files.

 

I hope that gives you the necessary information to get your DITA content into ACM with all the links correctly converted.

 

Kind regards

 

Sirko

Re: Where to get "Burst Configuration File for DITA Technical Content "?

$
0
0

Mr. Rudolph,

 

Thank you very much for your quick answer. It is very much appreciated.

I successfully found the files by following your instruction.

And I think the links will be fine too.

 

Thank you again.

 

Regards,

Tomomi

How can i customize the table display in Arbortext Editor with Styler

$
0
0

Hello All,

I am using in Arbortext Editor with Styler .

How can i set Table head text is currently to bold through the stylesheet?

Also , It should  be ALL CAPS (Upper Case Text in first row). Table cell background color should be 192-192-192 RGB which is #C0C0C0 Hex.

Please guide

How to put line return in custom table cell generated by Xpath string

$
0
0

Good day! I have an interesting problem. At least, interesting to me.

 

I have a custom table, and it has a few cells that are generated by Xpath strings.

 

What I would like to do is generate a custom table cell from an Xpath string that incorporates the content of two tags. No problem. But I would like to put a line return between those two instances. I'm not sure if there's a way to do this.

 

Here's an example of what I'm trying to do.

 

concat(string(tagx[1]/tagy/tagz), '{this is where the line return should be'}, string(tagx[2]/tagy/tagz))

 

I have control of the stylesheet, made via Arbortext with Styler, but by contract I cannot alter the DTD.

 

I have attempted to put various iterations of line returns, but they don't get called as line returns for the PDF. They just appear as the text that would constitute a line return in XML. In other words, '&#13;' literally appears in the PDF as &#13; and not as a line return.

 

Xpath is not my strong suit, so I may be going about this all wrong.

 

I appreciate your consideration!

Re: How to put line return in custom table cell generated by Xpath string

$
0
0

Arbortext supports quite a few special PIs that let you control the formatting. I think the one you are looking for is the <?Pub _newline?> processing instruction. If you can get that appearing in your output (as a PI and not as the literal text string) then Arbortext will create a new line during formatting.

 

The help system documents most if not all of the PIs, and you can also find them by using Styler's generated text editor and going to the (from memory) Format menu and picking items from there. Eg. font change, line/page breaks, colour change.


Re: How can i customize the table display in Arbortext Editor with Styler

$
0
0

Table properties (like cell background colour) can't be set through the Arbortext stylesheet. For cell background colour there is a PI that needs to be inserted <?PubTbl ..?> something or other. You can find that by setting the background colour manually (using Table menu) and see what is inserted by Arbortext.

 

For table heading text you should be able to use a Styler context to pickup paragraphs inside <thead> and set the bold formatting.

Re: How to put line return in custom table cell generated by Xpath string

$
0
0

Hi! Thank you for your help.

 

Putting the PI into the Xpath string unfortunately did not work, because it only appeared as a literal string. However, what did work is putting the PI into the content of "tagz" above -- in this case, when Xpath calls the tag content, the PI is part of this, and so it does indeed get incorporated as a PI and the carriage return appears.

 

Problem solved!

Publishing Engine and Advanced Print Publisher

$
0
0

So I can't remember if I have the standard Arbortext publishing engine do I also have Advance Print Publisher or is there a separate charge for the Advance Print Publisher?

 

Thanks in advance.

Re: Publishing Engine and Advanced Print Publisher

$
0
0

Hi Brian

From Arbortext 5.4 you had access to the APP print composition engine from PE/Styler. This isn't the full Desktop application, but is a DLL of the composition engine. APP understands Styler stylesheets, and you can also tell PE/Styler to use native APP templates (as long as you have developed them with this process in mind). This DLL is a standard part of the PE install and does not incur any additional cost. You can save out APP documents from the Print Preview if you wish and open those in APP Desktop.

If you want the Desktop, Server or Enterprise versions of APP, then these are separate applications and therefore must be bought separately.

Hope that helps

Simon

Multiple header rows in (one) custom table

$
0
0

Hi!

 

Is there a way in Arbortext with Styler, when making a custom table, to make more than one header row for that table? In other words, the header would be two rows.

 

There doesn't seem to be a way to do this via the Styler interface i.e. Custom Table tab. Perhaps there's a way involving editing the APP source ...

 

It would also be convenient to be able to merge cells in the header row. There doesn't seem to be a way to do this in the Custom Table tab either.

 

Someone might suggest, use a standard table! Unfortunately this isn't possible in this particular case. (I intend not to modify the DTD I am using.)

 

I appreciate your consideration.

Viewing all 3717 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>