Skip to main content
Known Participant
August 29, 2024
Question

フレームメーカ2020の「オブジェクトの属性」について

  • August 29, 2024
  • 3 replies
  • 545 views


去年までフレームメーカ2015を使用していましたが、今年からフレームメーカ2020を使用しています。
FM2015では取り込んだグラフィックのファイル名を「オブジェクトの属性」で確認することができましたが、FM2020では、取り込んだグラフィックのパスまでしか確認することができなくなってしまい、業務で大変苦慮しています。
どなたかFM2020で取り込んだグラフィックファイル名を簡単に確認する方法がございましたらご教授いただきたくよろしくお願いいたします

    This topic has been closed for replies.

    3 replies

    Participating Frequently
    September 2, 2024

    グラフィックをクリックするだけで簡単にファイル名を確認できる常駐スクリプトを作りました。

    長いパスは折り返し表示されるので、必要に応じてパレットサイズを変更してください。

    FM10以降のどのバージョンでも動作すると思います。

    不要になりましたら、OFFボタンをクリックしてからFMを再起動してください。

    #target framemaker
    //パレットを作る
    function f_createWindow (){
    	var w = new Window ('palette', 'obj_prop', undefined, {resizeable: true});
        var myText = w.add ("edittext", undefined, "", {multiline: true, name: "filePath"});
        myText.alignment = ["fill", "fill"];
        myText.minimumSize = [100, 20];
        var myButtonGroup = w.add ("group");
        myButtonGroup.alignment = ['center', 'bottom'];
        var on_button = myButtonGroup.add ("button", undefined, "ON");
        var off_button = myButtonGroup.add ("button", undefined, "OFF");
        on_button.onClick = function () {Notification (Constants.FA_Note_BackToUser, true);}
        off_button.onClick = function () {Notification (Constants.FA_Note_BackToUser, false);}
        w.onResizing = w.onResize = function () {this.layout.resize ();}
    	return w;
    }
    
    //パレットの表示内容を更新する
    function f_updateTools(){
        var w = Window.find ('palette', 'obj_prop');
    	if (w === null) return;
    	if (w.visible){
            if (!app.ActiveDoc.ObjectValid ()) return;
            var obj = app.ActiveDoc.FirstSelectedGraphicInDoc;
            if (obj.ObjectValid ()){
                if(obj.type == Constants.FO_Inset){
                    w.findElement("filePath").text = obj.InsetFile;
                }
            }
        }
    }
    
    //通知のコールバック
    function Notify (note, object, sparam, iparam){
    	switch (note){
            case Constants.FA_Note_BackToUser:
                f_updateTools ();
                break;
            default:
                break;
    	}
    }
    
    //パレットの有無を確認して、パレットを表示する
    var w = Window.find ('palette', 'obj_prop');
    if (w === null){
    	w = f_createWindow ();
    }
    w.show();
    f_updateTools();
    
    //通知の登録
    Notification (Constants.FA_Note_BackToUser, true);
    geso10Author
    Known Participant
    September 2, 2024

    ヤタニさん

    まさに求めていたものをご提供いただきありがとうございます。
    大変に助かりました。
    ありがとうございました

    Dave Creamer of IDEAS
    Community Expert
    Community Expert
    August 29, 2024

    The translation showed "Object Attributes"--are you working with Structured FrameMaker or do you mean properties?

    I find the Insets panel is the easiest way to view file names, but the Object Properties will work too. This is true in "regular" FrameMaker or Structured. 

    IF you are actually referring to Structured attributes, you can create a string for the file name but as far as I know, the name has to be filled in manually (key words are "as far as I know").

     

    David Creamer: Community Expert (ACI and ACE 1995-2023)
    geso10Author
    Known Participant
    August 29, 2024

    ご回答ありがとうございます
    オブジェクトのプロパティでパスやファイル名は確認できますが、文字数の制限があるようで、パスが長い場合に途中で切れて確認することができない状態となっていました。

    パネルの「Inset」は知りませんでした。今後使用したいです。
    お忙しい中、ありがとうございました。とても参考になりました

    Community Expert
    August 29, 2024

    Hi,

    You can check the path in the object properties. There is the path and the file name.

    I do not remember, how this worked in FrameMaker 2015.

    Question: Why did you not upgrade to FrameMaker 2022, but FrameMaker 2020?

    Best regards, Winfried

    geso10Author
    Known Participant
    August 29, 2024

    ご回答ありがとうございます。
    オブジェクトプロパティでパスやファイル名は確認できますが、文字数の制限があるようで、パスが長いと途中で切れて確認することができないので質問をさせていただきました。
    パネルの「Insets」でファイル名を確認できることを教えていただきました。
    また、FM2020を使用する理由は、取引先企業から指定されたバージョンだからです。

    Dave Creamer of IDEAS
    Community Expert
    Community Expert
    August 29, 2024

    Yes, the Insets panel shows the path and file name. Also, the column size of the panel can be adjusted like a spreadsheet. 

     

    David Creamer: Community Expert (ACI and ACE 1995-2023)